LegacyXperia / local_manifests

Local manifest for building CyanogenMod for Xperia 2011 devices
legacyxperia.github.io
122 stars 78 forks source link

[iyokan] Change "World key" to "Control" #981

Open nhuillard opened 9 years ago

nhuillard commented 9 years ago

I modify /system/usr/keylayout/pm8xxx-keypad.kl after each firmware upgrade to change the behaviour of the "World key" to "Control", which is much more useful for me than the original "Caps lock".

< key 368   CAPS_LOCK         WAKE_DROPPED
> key 368   CTRL_LEFT         WAKE_DROPPED

I wonder if this could be included by default, as "Caps lock" is already done with "double-shift", wheras there is no "Ctrl" at all on this keyboard (mandatory in a terminal...)

fred777 commented 9 years ago

That's what I do, too :)

I'm also hacking pm8xxx-keypad.kcm to obtain more useful symbols for ssh console like > < |

mikeNG commented 9 years ago

There are many interesting changes reagarding keyboard, best would be to submit them to gerrit.

nhuillard commented 9 years ago

I don't know how to submit things to gerrit... I also use VX ConnectBot on the device, which adds some useful keys by itself (and other features). The only really missing one is CTRL in this context, so I don't know if other key mappings should be added in a more genral context.

v6ak commented 9 years ago

I think that the keycode mapping is rather device specific, so they probably have to be handled in specific ROMs.

BTW, I remember times I did not know the functionality of the globe key and I considered “sudden” enabling of capslock (after accidental pressing globe button) as a bug of the ROM. I did not know the consequence of pressing the globe button, it looked just like a random event. I was not able to get rid of it in any way except rebooting the phone.