witten
/
luminotes
Archived
1
0
Fork 0

Changing note link key to ctrl-L and unordered list to ctrl-U.

This commit is contained in:
Dan Helfman 2007-07-18 20:28:42 +00:00
parent abd9948588
commit 5dca7e972e
2 changed files with 6 additions and 6 deletions

View File

@ -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 ) {

View File

@ -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"&#8594", id = u"createLink", title = u"note link [ctrl-E]", class_ = u"button" ) ),
Li( Input( type = u"button", value = u"&#8594", 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",