witten
/
luminotes
Archived
1
0
Fork 0

ctrl-n shouldn't work if the notebook isn't read-write.

This commit is contained in:
Dan Helfman 2007-11-12 11:26:10 +00:00
parent c31856b40b
commit e04a2a8a11
1 changed files with 3 additions and 0 deletions

View File

@ -565,6 +565,9 @@ Wiki.prototype.editor_focused = function ( editor, fire_and_forget ) {
}
Wiki.prototype.key_pressed = function ( event ) {
if ( !this.notebook.read_write )
return;
var code = event.key().code;
if ( event.modifier().ctrl ) {
// ctrl-n: new note