guis: disable keyboard shortcuts for launcher

This commit is contained in:
jean-emmanuel 2016-11-05 15:19:29 +01:00
parent a289b76d46
commit b02f7b1297
2 changed files with 16 additions and 12 deletions

View file

@ -23,17 +23,21 @@ module.exports = function(options={}) {
window.setMenuBarVisibility(false)
shortcut.register(window,'CmdOrCtrl+R',function(){
window.reload()
})
if (options.shortcuts) {
shortcut.register(window,'F11',function(){
window.setFullScreen(!window.isFullScreen())
})
shortcut.register(window,'CmdOrCtrl+R',function(){
window.reload()
})
shortcut.register(window,'F12',function(){
window.toggleDevTools();
})
shortcut.register(window,'F11',function(){
window.setFullScreen(!window.isFullScreen())
})
shortcut.register(window,'F12',function(){
window.toggleDevTools();
})
}
return window