Properly handling hitting page-up at the top or page-down at the bottom of the notes.
This commit is contained in:
parent
3b335cca89
commit
d0aa2614bc
|
@ -1213,6 +1213,8 @@ Wiki.prototype.focus_previous_editor = function () {
|
|||
}
|
||||
|
||||
var previous_editor = this.focused_editor.previous_editor();
|
||||
if ( !previous_editor ) return;
|
||||
|
||||
this.editor_focused( null );
|
||||
previous_editor.highlight();
|
||||
}
|
||||
|
@ -1226,6 +1228,8 @@ Wiki.prototype.focus_next_editor = function () {
|
|||
}
|
||||
|
||||
var next_editor = this.focused_editor.next_editor();
|
||||
if ( !next_editor ) return;
|
||||
|
||||
this.editor_focused( null );
|
||||
next_editor.highlight();
|
||||
}
|
||||
|
|
Reference in New Issue