From 5dca7e972e7d00347eeb80674c43cc3c656a18b1 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Wed, 18 Jul 2007 20:28:42 +0000 Subject: [PATCH] Changing note link key to ctrl-L and unordered list to ctrl-U. --- static/js/Wiki.js | 8 ++++---- view/Toolbar.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/js/Wiki.js b/static/js/Wiki.js index de234df..5b66f7d 100644 --- a/static/js/Wiki.js +++ b/static/js/Wiki.js @@ -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 ) { diff --git a/view/Toolbar.py b/view/Toolbar.py index 87583d9..df0c304 100644 --- a/view/Toolbar.py +++ b/view/Toolbar.py @@ -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",