witten
/
luminotes
Archived
1
0
Fork 0

Fixed bug in which tab/shift-tab for indending/outdenting nested lists no

longer worked, and in the process made it work in IE as well (which it
never has).
This commit is contained in:
Dan Helfman 2008-07-03 16:56:17 -07:00
parent 3a169c0837
commit 94b53832d5
2 changed files with 18 additions and 7 deletions

7
NEWS
View File

@ -1,7 +1,12 @@
1.4.12: July ??, 2008:
* Fixed bug in which tab/shift-tab for indending/outdenting nested lists no
longer worked, and in the process made it work in IE as well (which it
never has).
* controller.Root.guide() now accepts an optional note_id parameter.
1.4.11: June 29, 2008: 1.4.11: June 29, 2008:
* Fixed bug in which bolding of suggest-as-you-type search text was case * Fixed bug in which bolding of suggest-as-you-type search text was case
sensitive. Now it's case insensitive. sensitive. Now it's case insensitive.
* controller.Root.guide() now accepts an optional note_id parameter.
1.4.10: June 29, 2008: 1.4.10: June 29, 2008:
* New suggest-as-you-type feature for creating a new link, setting a link's * New suggest-as-you-type feature for creating a new link, setting a link's

View File

@ -992,12 +992,18 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
} else if ( code == 68 ) { } else if ( code == 68 ) {
this.delete_editor( event ); this.delete_editor( event );
} }
// IE: hitting space or tab while making a link shouldn't end the link // shift-tab: outdent
} else if ( ( code == 32 || code == 9 ) && editor.document.selection && editor.state_enabled( "a" ) ) { } else if ( event.modifier().shift && code == 9 ) {
if ( code == 32 ) { editor.exec_command( "outdent" );
var range = editor.document.selection.createRange(); event.stop();
range.text = " "; // tab: outdent
} } else if ( code == 9 ) {
editor.exec_command( "indent" );
event.stop();
// IE: hitting space while making a link shouldn't end the link
} else if ( code == 32 && editor.document.selection && editor.state_enabled( "a" ) ) {
var range = editor.document.selection.createRange();
range.text = " ";
event.stop(); event.stop();
// IE: hitting backspace while making a link shouldn't end the link // IE: hitting backspace while making a link shouldn't end the link
} else if ( code == 8 && editor.document.selection ) { } else if ( code == 8 && editor.document.selection ) {