Comment 181 for bug 2561

Revision history for this message
In , Ndemou-gmail (ndemou-gmail) wrote :

(in reply to Comment #161)

karl paraphrased to give a synopsis:
"Step b1 of the algorithm at .../.../mozilla_bug_69230.html is being skipped.
As a result when pressing [alt]+[non-latin-letter] the non-latin character code
will be replaced by a latin one. But [alt]+[non-latin char] is often used to
activate a menu entry. So by omitting step b1 we will inhibit opening the menus
in some locales."[1]

Karl notes that step b1 is hard (probably too hard) and proposes as a
workaround to skip step b1 but also *not* to triger the algorithm for
[alt]+[key].

This workaround seems OK expect from one detail: it means that pressing
[alt]+[key] while in a latin logical keyboard layout will not be discarded in a
localized mozilla that expects [alt]+[non latin char] to trigger an action.
This is a tricky issue[2] so I suggest that we should check two other
possibilities

a) reexamine how hard step b1 is
b) produce both the translated-to-latin and the untranslated key events for
every [modifier]+[non-latin-char]

______________________
P.S. after all this comments what this bug relly means to me is that thinking
about [modifier]+[character code] instead of [modifier]+[key code] is so wrong
that it leads to a lot of confusion and a lot of problems. It's important that
at some point all talks / specs / code / whatever regards hot-keys be using the
[modifier]+[key code] idea.

[1] Karl, you surely understand my algorithm better than I do :)
[2] I would expand on the subject if RealLife was not pushing me that hard