Firefox shortcuts in Linux on non-us keyboard layout, and Greek

You tried to use the common key­board short­cuts in the Linux ver­sion of Fire­fox, with a key­board layout other than us, and you real­ised they do not work. For example, Ctrl-C does not work when the Greek key­board layout is active because Fire­fox receives Ctrl-Ψ (which is undefined).
This is a well-​known prob­lem affect­ing key­board short­cuts in many lan­guages.
How can someone solve the prob­lem; Should Fire­fox for Linux be con­figured so that intern­ally it would con­sider Ctrl-C and Ctrl-Ψ cor­res­pond to the same key­board short­cut (per­haps in the lan­guage pack)? Well, the prob­lem is that one would prefer a solu­tion that is inde­pend­ent of the key­board layout. You might be run­ning a Greek loc­al­isa­tion of Fire­fox with an active layout for Hindi.
The optimal solu­tion is to have Fire­fox asso­ci­ate the key­board short­cuts to phys­ical keys (whatever that means) instead of the char­ac­ters they are pro­du­cing. Bug #69230/Mozilla has been there for quite some time although an accept­able solu­tion is avail­able in both GTK+ (GNOME) and Open​Of​fice.org. For example, in a GNOME applic­a­tion, both Ctrl-C and Ctrl-Ψ are equi­val­ent.
So, what can we do now with the Linux ver­sions of Fire­fox? Well, it is pos­sible to write a Fire­fox exten­sion that would inter­cept keys being pressed in a local layout and con­vert to the stand­ard key­board short­cuts Fire­fox likes.
Such a work­around is avail­able for the Greek lan­guage, writ­ten by Ath­ana­s­ios Lef­teris, at Moz­illa και συντομεύσεις πληκτρολογίου σε Linux.
Cur­rently the exten­sion exists in the sand­box of the Moz­illa add-​ons, mean­ing that you are required to register (free) and also con­fig­ure your pro­file to allow the view of sand­boxed exten­sions (=in early stage of devel­op­ment, about to get accep­ted). It is desired to to try out the exten­sion and write a short review. This will help to get the exten­sion accep­ted as offi­cial add-​on to the masses.

Many thanks to Athanasios!

p.s.
There is an exist­ing Rus­sian ver­sion of the exten­sion. It is expec­ted that other lan­guages will follow.

4 Responses to “Firefox shortcuts in Linux on non-us keyboard layout, and Greek”

  1. There is another exten­sion in the sand­box called “Multi-Lang URLs” that does the same but also allows adding more lan­guages

  2. Could you post the URL of that exten­sion please?

  3. From the above men­tioned bug (http://​bug​zilla.​moz​illa.​org/​s​h​o​w​_​b​u​g​.​c​g​i​?​i​d​=​69230) a fix has been com­mit­ted to moz­illa trunk recently, which mean this bug will be fixed in the next fire­fox 3 beta.

  4. That’s cor­rect.

    Among dis­tri­bu­tions, Arch Linux has added the patch in the cur­rent ver­sion (about a month ago) and it should work in Fire­fox 2.x as well.

Discussion Area - Leave a Comment