read-only mode: hide & disable main menu
This commit is contained in:
parent
c39f4670b4
commit
11c3e3324e
5 changed files with 31 additions and 25 deletions
|
|
@ -143,7 +143,7 @@ module.exports = function(options={}) {
|
|||
menu.popup({window: window, x: e.x, y: e.y })
|
||||
}, false)
|
||||
|
||||
if (options.shortcuts) {
|
||||
if (options.shortcuts && !settings.read('read-only')) {
|
||||
|
||||
shortcut.register(window,'CmdOrCtrl+R',function(){
|
||||
window.reload()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue