LegacyXperia / local_manifests

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

[CM11][mango] Double shift on hardware keyboard switches language #775

Open leadenmoth opened 10 years ago

leadenmoth commented 10 years ago

I tested this with cyrillic, but since double press behavior is not defined in the layouts, this should probably be true for all other layouts that rely on World key.

First of all, double shift should work as capslock. Currently it seems to just not work, but even that is not entirely true.

Steps to reproduce:

  1. Select only Cyrillic layout in hardware keyboard settings
  2. Start typing somewhere
  3. Use the World key to switch from QWERTY to Cyrillic
  4. Double-press Shift - the layout is back at QWERTY

If you start double-pressing shift FROM QWERTY, nothing will happen. But if you do it starting from Cyrillic, then you can switch layouts back and forth with double shift AND the World key stops working until you go back to Cyrillic via double shift.

This, obviously, has something to do with the fact that World key is mapped as capslock, and secondary layouts like Cyrillic are treated as capslock+qwerty. I can't imagine a way to implement shift_2=capslock without rewriting all the layouts, but the weird "shift_2=World in some cases but not others" behavior could probably be due to some collision in key mapping, like if something was just copied from stock keyboard

mikeNG commented 9 years ago

I was donated an xperia pro a few days ago so I might be able to take a look at this. Can you post a picture of your keyboard?

di72nn commented 9 years ago

Cyrillic keyboard layout on mango (the photo is from 3rd party source, but I confirm it corresponds with my mango's keyboard): http://mobzon.ru/images/sonyericsson-xperia-mini-pro/sonyericsson-xperia-mini-pro-14.jpg

leadenmoth commented 9 years ago

img_20150314_140636

These are the two cyrillic layouts I've encountered. Presumably the left one is the official, and the right one is aftermarket, though somehow the stock firmware supported both. We've dealt with the different layouts in another issue here, so no trouble there. Btw, I could donate you both these handsets (well, one technically is a collection of spare parts stuck together, but still) if you need. On a side note it would probably help you see the backlight thing from here: https://github.com/LegacyXperia/local_manifests/issues/728 - it must be a hardware difference, if it doesn't reproduce on other models.