Added working pixels example

This commit is contained in:
Devine Lu Linvega
2019-07-15 12:22:26 +09:00
parent 3b59441033
commit beddb42000
5 changed files with 46 additions and 22 deletions

View File

@@ -16,7 +16,9 @@ function Controller () {
if (!this.menu[mode]) { this.menu[mode] = {} }
if (!this.menu[mode][cat]) { this.menu[mode][cat] = {} }
this.menu[mode][cat][label] = { fn: function (_menuItem, browserWindow) {
browserWindow.webContents.focus()
if (browserWindow) {
browserWindow.webContents.focus()
}
fn.apply(this, arguments)
},
accelerator: accelerator }