ctrl-n shouldn't work if the notebook isn't read-write.
This commit is contained in:
parent
c31856b40b
commit
e04a2a8a11
|
@ -565,6 +565,9 @@ Wiki.prototype.editor_focused = function ( editor, fire_and_forget ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Wiki.prototype.key_pressed = function ( event ) {
|
Wiki.prototype.key_pressed = function ( event ) {
|
||||||
|
if ( !this.notebook.read_write )
|
||||||
|
return;
|
||||||
|
|
||||||
var code = event.key().code;
|
var code = event.key().code;
|
||||||
if ( event.modifier().ctrl ) {
|
if ( event.modifier().ctrl ) {
|
||||||
// ctrl-n: new note
|
// ctrl-n: new note
|
||||||
|
|
Reference in New Issue