问题
I noticed that Shift-B is not being recorded or received on EditTexts when I am using the emulator with my physical keyboard.
- Keyboard works fine elsewhere in all other programs - "B" - see!
- Lower-case ''b' works fine everywhere
- All other SHIFT alphabet characters work from the keyboard except "B"
- Clicking on shift-B on the IME (soft keyboard) works fine
- When pressing SHIFT-b, the
onKeyListener.onKey()
receives a keyCode of 0
I have used Android Studio and the Emulator extensively for a year and just now noticed this. I am not sure when it began.
I have quit and restarted Android Studio and the Emulator to no avail.
I am guessing that I somehow have a key map messed up by accident or corruption, but I do not know where to begin fixing this.
回答1:
This was a bug in the emulator and was fixed in 27.0.5 that was released in the past week.
来源:https://stackoverflow.com/questions/48045540/ime-in-android-studio-emulator-not-responding-to-shift-b-on-keyboard