guis: disable keyboard shortcuts for launcher
This commit is contained in:
parent
a289b76d46
commit
b02f7b1297
2 changed files with 16 additions and 12 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue