jacky-0815 / minicm

Automatically exported from code.google.com/p/minicm
0 stars 0 forks source link

Physical German Keyboard (qwertz) Layout #421

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Working with the physical keyboard

What is the expected output? What do you see instead?
y instead z, no german umlauts ä, ö, ü, ß(with sym-key)

What version of MiniCM you are using? On what device (X10mini, X10minipro,
X8)
Xperia mini pro x10, minicm 7.1.8

What app(s) are involved in the problem?
all

Have you tried rebooting your device?
sure

What is the adb logcat output when the problem accurs (see:
http://wiki.cyanogenmod.com/index.php?title=Logcat)

Please provide any additional information below.

Original issue reported on code.google.com by Florian....@googlemail.com on 5 Feb 2012 at 12:21

GoogleCodeExporter commented 9 years ago
Vanila MiniCM 7 2 1 9 
on 2.6.29-nAa-11 kernel
on x10 mini pro
the MiniCM is lovely by the way, thanks for it. With it, I have a new phone, 
much faster!

Original comment by david.k...@gmail.com on 29 Feb 2012 at 9:05

GoogleCodeExporter commented 9 years ago
After researching a bit I am convinced that it is a small bug and I have a 
proposal how to fix it. 

At the very end of  /system/usr/keylayout/mimmi_keypad.kl it is written:

# Key code SYM is used by platform to  InputMethodSelectionDialog, use
# ALT_RIGHT instead.
key 216 ALT_RIGHT WAKE_DROPPED

Since in original qwerty.kl the scan code 216 is simply mapped to SYM, I think 
it is a Mimmy related change.

If so, probably the developer forgot to change the binding of the keycode to 
the actual action. 

In android/text/method/MetaKeyKeyListener one can see the following two member 
functions: 

263     /**
264      * Handles presses of the meta keys.
265      */
266     public boolean onKeyDown(View view, Editable content, int keyCode, 
KeyEvent event) {
267         if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == 
KeyEvent.KEYCODE_SHIFT_RIGHT) {
268             press(content, CAP);
269             return true;
270         }
271 
272         if (keyCode == KeyEvent.KEYCODE_ALT_LEFT || keyCode == 
KeyEvent.KEYCODE_ALT_RIGHT
273                 || keyCode == KeyEvent.KEYCODE_NUM) {
274             press(content, ALT);
275             return true;
276         }
277 
278         if (keyCode == KeyEvent.KEYCODE_SYM) {
279             press(content, SYM);
280             return true;
281         }
282 
283         return false; // no super to call through to
284     }

and 

318     /**
319      * Handles release of the meta keys.
320      */
321     public boolean onKeyUp(View view, Editable content, int keyCode, 
KeyEvent event) {
322         if (keyCode == KeyEvent.KEYCODE_SHIFT_LEFT || keyCode == 
KeyEvent.KEYCODE_SHIFT_RIGHT) {
323             release(content, CAP, event);
324             return true;
325         }
326 
327         if (keyCode == KeyEvent.KEYCODE_ALT_LEFT || keyCode == 
KeyEvent.KEYCODE_ALT_RIGHT
328                 || keyCode == KeyEvent.KEYCODE_NUM) {
329             release(content, ALT, event);
330             return true;
331         }
332 
333         if (keyCode == KeyEvent.KEYCODE_SYM) {
334             release(content, SYM, event);
335             return true;
336         }
337 
338         return false; // no super to call through to
339     }

The conditions, because of the re-purposed ALT_RIGHT, playing the role of SYM, 
should be as follows: 

         if (keyCode == KeyEvent.KEYCODE_ALT_LEFT)
                 || keyCode == KeyEvent.KEYCODE_NUM) {
             press / release(content, ALT, event);
             return true;
         }

         if (keyCode == KeyEvent.KEYCODE_ALT_RIGHT) {
             press / release(content, SYM, event);
             return true;
         }

All right -- now you tell me if I am right with ALT_RIGHT ;)

just a side note: in Hungarian we have nine accented vowels (compare it with 
the five non-accented vowels), so this bug is close to my heart. ;)

Original comment by david.k...@gmail.com on 29 Feb 2012 at 11:23

GoogleCodeExporter commented 9 years ago
I found a Solution:
There's a Tool named Keyboard Switcher.
But I cannot find the link anymore.

Original comment by m.muelle...@googlemail.com on 24 Mar 2012 at 11:57

Attachments:

GoogleCodeExporter commented 9 years ago
here it is:
http://forum.xda-developers.com/showthread.php?t=1113863

Original comment by m.muelle...@googlemail.com on 25 Mar 2012 at 12:22

GoogleCodeExporter commented 9 years ago
"Keyboard Switcher" does not work for me (Vanila MiniCM 7 2 1 9 on 
2.6.29-nAa-11 kernel on x10 mini pro), also changing via ROM Manager does not 
work for me.

Original comment by wolfgang...@googlemail.com on 27 Mar 2012 at 9:06

GoogleCodeExporter commented 9 years ago
ich nehm jetzt mal an du kannst deutsch.
also eigentlich müsste es mit jedem cm gehen.
Bei mir hat es so funktioniert:
1.Sony PC Companion installiert
2.Handy angeschlossen
3.nach Treiberinstallation Handy wieder ab und und angesteckt, aber diesmal nur 
mit USB-Debugging und mit deaktiviertem USB-Speicher
4. nach erneuter Treiberinstallation PC neugestartet 
5. Dann ging es ;D

Original comment by m.muelle...@googlemail.com on 29 Mar 2012 at 9:00

GoogleCodeExporter commented 9 years ago
It only works for me with the default keyboard, not if I choose android keyboard

Original comment by xlrea...@gmail.com on 14 Apr 2012 at 6:28

GoogleCodeExporter commented 9 years ago
kernel 2.6.29.6-nAa-11, MiniCM7-2.2.0 on minipro; have qwerty instead of qwertz 
layout, although umlauts work well with sym-key. only using default-keyboard, 
android keyboard disabled
btw, i first tried with MiniCM9 and ICS-Kernel which was annoyingly (!) slow. 
MiniCM7 rocks!

Original comment by schuessm...@gmail.com on 19 May 2012 at 11:09

GoogleCodeExporter commented 9 years ago
MiniCM9-3.0.2-mimmi.zip had an option to set physical keyboard layout.
So there it was possible to set the keyboard to QWERTZ.
Unfortunately it is much slower than 3.0.3.
In MiniCM9-3.0.3-mimmi.zip this has gone.

Speed rock's again in 3.0.3!
But QWERTZ would be perfect ;-)

Original comment by jo...@netzagentur.at on 6 Jul 2012 at 3:46

GoogleCodeExporter commented 9 years ago
hab jetzt auch 303 drauf. hab auch das problem das ich schon seit 2.2.0 kein 
richtiges qwertz habe und ne lösung hab ich auch noch nicht gefunden. aber in 
der 3.0.3 ist noch ein viel größeres problem und zwar auf dem x10mini pro 
gibt es auf der hardware tastatur einen blauen umschaltbutton um zwischen 
buchstaben und zahlen zu wählen der funktioniert gar nicht mehr. das ist ein 
sehr schlimmer bug bitte fixen!

Original comment by Funki...@googlemail.com on 17 Jul 2012 at 4:34