Hi,

I've coded up some simple key bindings for Mozilla to allow switching
the direction of the input box, just like (Left/Right)Ctrl-Shift
does in Windows / Qt.

Get it from:
http://toast.unwind.co.il/hacks/mozBidiBindings.tar.gz
(installation instructions inside)

Unfortunately I was unable to use the familiar (Left/Right)Ctrl-Shift
keys, since its impossible to attach events to them in Mozilla (a bug?)
so I've used the following keys:

Ctrl-; for left-to-right.
Ctrl-' for right-to-left.

In regular text boxes (on web pages, the GUI, Chatzilla ...), you would
switch the directionality of the whole input box.

In the Composer / Mail Composer, you'd switch the directionality of the
paragraph (or table cell, or list item) your cursor is on. This
directionality would be preserved in the resulting HTML / mail message
(in case you send it as HTML).

Of course, I'd still like to see this bug resolved :)
http://bugzilla.mozilla.org/show_bug.cgi?id=96057

- - -

One feature I'd like to add myself, or have one of you add, is to allow
making a whole selection Left-to-right or Right-to-left. That'll
require some more work and the use of LRE / RLE Unicode control
characters, as well as getting more familiar with Composer's selections
API. If you want to explore the API further, Mozilla's DOM Inspector
and JavaScript Debugger are very helpful (that's how I did it).

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to