witten
/
luminotes
Archived
1
0
Fork 0

New keyboard shortcuts: Start a search: Ctrl-slash. Save the current note: Ctrl-space.

This commit is contained in:
Dan Helfman 2009-01-27 12:07:02 -08:00
parent fdebb1061b
commit fcb57dcc98
2 changed files with 20 additions and 3 deletions

7
NEWS
View File

@ -1,7 +1,10 @@
1.6.0: January ??, 2009
* Switching between notebooks and loading notebooks is now much faster.
* New keyboard shortcuts for switching to next open note and previous open
note: Page down and page up.
* Several new keyboard shortcuts:
* Switch to the next open note: Page down
* Switch to the previous open note: Page up
* Start a search: Ctrl-slash
* Save the current note: Ctrl-space
* Fixed various bugs related to the subscription page.
1.5.12: December 30, 2008

View File

@ -1069,8 +1069,14 @@ Wiki.prototype.key_pressed = function ( event ) {
var code = event.key().code;
if ( event.modifier().ctrl ) {
// ctrl-m: make a new note
if ( code == 77 )
if ( code == 77 ) {
this.create_blank_editor( event );
// ctrl-slash: start a search
} else if ( code == 191 ) {
var search_text = getElement( "search_text" );
if ( search_text )
search_text.focus();
}
}
}
@ -1121,6 +1127,14 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
// ctrl-d: delete note
} else if ( code == 68 ) {
this.delete_editor( event );
// ctrl-slash: start a search
} else if ( code == 191 ) {
var search_text = getElement( "search_text" );
if ( search_text )
search_text.focus();
// ctrl-space: save the current editor
} else if ( code == 32 ) {
this.save_editor();
}
// shift-tab: outdent
} else if ( event.modifier().shift && code == 9 ) {