Quantcast

Indent list when pressing TAB key

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Indent list when pressing TAB key

Daniel Kirsch
I create an unordered list in an iframe with designMode=on using
  editor.contentDocument.execCommand('insertunorderedlist',false,null);

When pressing the TAB key I want to indent the current list item and
make it a sublist item.
This used to work in 1.9a6pre Gecko/20070627, however it does not in
current versions. Instead the next element (outside the iframe) will be
focused. Is there a way to get this behaviour back?

Thanks
Daniel
_______________________________________________
dev-tech-editor mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-editor
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Indent list when pressing TAB key

Daniel Kirsch
Am 30.08.2010 17:26, schrieb Daniel Kirsch:
> Is there a way to get this behaviour back?

Found a bug report
https://bugzilla.mozilla.org/show_bug.cgi?id=426690
And try to find a solution. Will attach that to the bug.
Cheers
Daniel
_______________________________________________
dev-tech-editor mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-editor
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Indent list when pressing TAB key

Daniel Kirsch
Am 30.08.2010 20:11, schrieb Daniel Kirsch:
> And try to find a solution. Will attach that to the bug.

Done. Possible solution
https://bug426690.bugzilla.mozilla.org/attachment.cgi?id=470773

Offers:
- A list will be in/outdented when the focus is at a list item and the user
presses TAB
- The content of the next/previous cell will be selected if the user presses
TAB
- The current selection will be collapsed to the end when the user
presses the
RIGHTARROW key
- The current selection will be collapsed to the start when the user presses
the LEFTARROW key
This is pretty similar to the default behaviour in applications like MS
WORD.

I hope this might be of some help for others.

Cheers
Daniel
_______________________________________________
dev-tech-editor mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-editor
Loading...