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:
parent
0b2b0ec69e
commit
929d27035a
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
1.5.9:
|
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 Chrome/Safari bug in which ending a link didn't always work.
|
||||||
* Fixed a rare Chrome/Safari bug in which pressing backspace sometimes made
|
* Fixed a rare Chrome/Safari bug in which pressing backspace sometimes made
|
||||||
the text cursor vanish.
|
the text cursor vanish.
|
||||||
|
|
|
@ -1069,8 +1069,8 @@ Wiki.prototype.key_pressed = function ( event ) {
|
||||||
|
|
||||||
var code = event.key().code;
|
var code = event.key().code;
|
||||||
if ( event.modifier().ctrl ) {
|
if ( event.modifier().ctrl ) {
|
||||||
// ctrl-n: new note
|
// ctrl-m: make a new note
|
||||||
if ( code == 78 )
|
if ( code == 77 )
|
||||||
this.create_blank_editor( event );
|
this.create_blank_editor( event );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1116,8 +1116,8 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
||||||
// ctrl-l: link
|
// ctrl-l: link
|
||||||
} else if ( code == 76 ) {
|
} else if ( code == 76 ) {
|
||||||
this.toggle_link_button( event );
|
this.toggle_link_button( event );
|
||||||
// ctrl-n: new note
|
// ctrl-m: make a new note
|
||||||
} else if ( code == 78 ) {
|
} else if ( code == 77 ) {
|
||||||
this.create_blank_editor( event );
|
this.create_blank_editor( event );
|
||||||
// ctrl-h: hide note
|
// ctrl-h: hide note
|
||||||
} else if ( code == 72 ) {
|
} else if ( code == 72 ) {
|
||||||
|
|
|
@ -10,7 +10,7 @@ class Toolbar( Div ):
|
||||||
P(
|
P(
|
||||||
Div( Input(
|
Div( Input(
|
||||||
type = u"image",
|
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",
|
src = u"/static/images/toolbar/new_note_button.png",
|
||||||
width = u"40", height = u"40",
|
width = u"40", height = u"40",
|
||||||
class_ = "image_button",
|
class_ = "image_button",
|
||||||
|
|
Reference in New Issue