function Keyboard() {

	app.on('window-all-closed', function() {
	    app.quit();
	});

	// @if NODE_ENV='development'
	c.log('[Keyboard] ✔');
	// @endif

	this.outputFolder = app.getPath('home') + '/pressanykey/';
	c.log(this.outputFolder);

	this.isFullScreen = false;
	this.browserWindow = new BrowserWindow({
	  width: 800,
	  height: 600,
	  frame: false,
	  backgroundColor: '#141414',
	  show: false,
	  minWidth: 600,
	  minHeight: 350,
	  darkTheme: true,
	});

	this.browserWindow.loadURL('file://' + __dirname + '/src/html/index.html' + '#' + this.id);

	this.attachEvents();

	// @if NODE_ENV='development'
	this.browserWindow.webContents.openDevTools();
	// @endif

}

Keyboard.prototype.attachEvents = function() {

	this.browserWindow.webContents.on('dom-ready', this.onReady.bind(this));

	ipcMain.on('print', function(event, text, svg) {
		this.startPrinting(text, svg);
	}.bind(this));

}

Keyboard.prototype.onReady = function() {

	this.browserWindow.webContents.send('ready');
	this.browserWindow.show();

}

Keyboard.prototype.toggleFullScreen = function() {

	// @if NODE_ENV='development'
	c.log('FULLSCREEN');
	// @endif

	this.isFullScreen = !this.isFullScreen;
	this.browserWindow.setFullScreen(this.isFullScreen);

}

Keyboard.prototype.startPrinting = function(text, svg) {

	var day = pad(new Date().getDate());
	var month = pad(new Date().getMonth() + 1);
	var year = new Date().getFullYear();
	var date = day + '-' + month + '-' + year;

	var hrs = pad(new Date().getHours());
	var min = pad(new Date().getMinutes());
	var sec = pad(new Date().getSeconds());
	var time = hrs + '-' + min + '-' + sec;

	var fileName = date + '-' + time + '-' + text + '.svg';

	fs.writeFile(this.outputFolder + fileName, svg, function(err) {
		// @if NODE_ENV='development'
		if(err) c.log(err);
		// @endif
	});

	svg_to_png.convert(this.outputFolder + fileName, this.outputFolder, {defaultWidth: "384px"})
	.then( function(){
		// sharp(this.outputFolder + fileName)
		// 	.resize(384)
		// 	.toFile(this.outputFolder + fileName, function(err) {
		// 		c.log(err);
		// 	});
	});

	// @if NODE_ENV='development'
	c.log('PRINTING');
	c.log(text);
	c.log(svg);
	// @endif

}
@@ -1631,17 +1631,20 @@
 ;%0A%0A%09var 
-f
+svgF
 ileName 
@@ -1670,24 +1670,105 @@
  + '
--' + text
+.svg';%0A%09var pngFileName = date + '-' + time + '.png';%0A%09var jpgFileName = date + '-' + time
  + '.
-sv
+jp
 g';%0A
@@ -1794,33 +1794,36 @@
 .outputFolder + 
-f
+svgF
 ileName, svg, fu
@@ -1940,33 +1940,36 @@
 .outputFolder + 
-f
+svgF
 ileName, this.ou
@@ -2031,16 +2031,45 @@
 %7B%0A%09%09
-// sharp
+c.log('Converting for printer');%0A%09%09gm
 (thi
@@ -2081,25 +2081,28 @@
 putFolder + 
-f
+pngF
 ileName)%0A%09%09/
@@ -2100,19 +2100,16 @@
 Name)%0A%09%09
-// 
 %09.resize
@@ -2120,18 +2120,213 @@
 )%0A%09%09
-// %09.toFil
+%09.write(this.outputFolder + pngFileName, function(err) %7B%0A%09%09%09%09if(!err) c.log('Done converting');%0A%09%09%09%09if(err) c.log(err);%0A%09%09%09%7D);%0A%09%09%09// .background('white')%0A%09%09%09// .flatten()%0A%09%09%09// .toFormat('jpg')%0A%09%09%09// .writ
 e(th
@@ -2343,17 +2343,20 @@
 older + 
-f
+jpgF
 ileName,
@@ -2378,37 +2378,151 @@
 %7B%0A%09%09
+%09
 // %09
-%09c.log(err
+if(err) throw err;%0A%09%09%09// %09// @if NODE_ENV='development'%0A%09%09%09// %09if(!err) c.log('Done converting'
 );%0A
+%09
 %09%09// %09
-%7D);%0A%09%7D
+// @endif%0A%09%09%09// %7D);%0A%09%7D.bind(this)
 );%0A%0A
@@ -2569,24 +2569,27 @@
 RINTING');%0A%09
+// 
 c.log(text);
@@ -2590,16 +2590,19 @@
 text);%0A%09
+// 
 c.log(sv

Prepare image for printer