Changing note link key to ctrl-L and unordered list to ctrl-U.
This commit is contained in:
parent
abd9948588
commit
5dca7e972e
|
@ -291,14 +291,14 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
|||
// ctrl-t: title
|
||||
} else if ( code == 84 ) {
|
||||
this.toggle_button( event, "title", "h3" );
|
||||
// ctrl-l: unordered list
|
||||
} else if ( code == 76 ) {
|
||||
// ctrl-u: unordered list
|
||||
} else if ( code == 85 ) {
|
||||
this.toggle_button( event, "insertUnorderedList" );
|
||||
// ctrl-n: ordered list
|
||||
} else if ( code == 49 ) {
|
||||
this.toggle_button( event, "insertOrderedList" );
|
||||
// ctrl-e: make an note link
|
||||
} else if ( code == 69 ) {
|
||||
// ctrl-l: make a note link
|
||||
} else if ( code == 76 ) {
|
||||
this.toggle_link_button( event );
|
||||
// ctrl-n: new note
|
||||
} else if ( code == 78 ) {
|
||||
|
|
|
@ -9,9 +9,9 @@ class Toolbar( Div ):
|
|||
Li( Input( type = u"button", value = u"B", id = u"bold", title = u"bold [ctrl-B]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"I", id = u"italic", title = u"italic [ctrl-I]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"T", id = u"title", title = u"title [ctrl-T]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"•", id = u"insertUnorderedList", title = u"list [ctrl-L]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"•", id = u"insertUnorderedList", title = u"unordered list [ctrl-U]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"1.", id = u"insertOrderedList", title = u"numbered list [ctrl-1]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"→", id = u"createLink", title = u"note link [ctrl-E]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"→", id = u"createLink", title = u"note link [ctrl-L]", class_ = u"button" ) ),
|
||||
Li( Input( type = u"button", value = u"+", id = u"newNote", title = u"new note [ctrl-N]", class_ = u"button" ) ),
|
||||
),
|
||||
id = u"toolbar",
|
||||
|
|
Reference in New Issue