witten
/
luminotes
Archived
1
0
Fork 0

Changed the "new note" key from ctrl-N to ctrl-M so as not to conflict with the "new browser window" key used in most web browsers.

This commit is contained in:
Dan Helfman 2008-12-03 15:11:49 -08:00
parent 0b2b0ec69e
commit 929d27035a
3 changed files with 7 additions and 5 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
1.5.9:
* Changed the "new note" key from ctrl-N to ctrl-M so as not to conflict with
the "new browser window" key used in most web browsers.
* Fixed a Chrome/Safari bug in which ending a link didn't always work.
* Fixed a rare Chrome/Safari bug in which pressing backspace sometimes made
the text cursor vanish.

View File

@ -1069,8 +1069,8 @@ Wiki.prototype.key_pressed = function ( event ) {
var code = event.key().code;
if ( event.modifier().ctrl ) {
// ctrl-n: new note
if ( code == 78 )
// ctrl-m: make a new note
if ( code == 77 )
this.create_blank_editor( event );
}
@ -1116,8 +1116,8 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
// ctrl-l: link
} else if ( code == 76 ) {
this.toggle_link_button( event );
// ctrl-n: new note
} else if ( code == 78 ) {
// ctrl-m: make a new note
} else if ( code == 77 ) {
this.create_blank_editor( event );
// ctrl-h: hide note
} else if ( code == 72 ) {

View File

@ -10,7 +10,7 @@ class Toolbar( Div ):
P(
Div( Input(
type = u"image",
id = u"newNote", title = u"new %s [ctrl-N]" % ( note_word or u"note" ),
id = u"newNote", title = u"make a new %s [ctrl-M]" % ( note_word or u"note" ),
src = u"/static/images/toolbar/new_note_button.png",
width = u"40", height = u"40",
class_ = "image_button",