I am trying to capture the back event when the soft keyboard is displayed.
I am using the SDK ver 8 and can successfully capture the back key event ONLY when the HIDDEN soft keyboard looks like this:
@Override public void onBackPressed() {
The problem is that the system does not call this method while the soft keyboard is displayed. I tried to enter the KeyDown / Up () methods, as well as the method described above to find out what was going on in this scenario, to no avail. See below:
@Override public boolean onKeyUp(int keyCode, KeyEvent event) {
Logs are returned for volume and menu keys as expected, but the reverse key is only recorded when the keyboard and menu are hidden.
Do you have a βbackβ guru who can explain this phenomenon?
Any help is greatly appreciated.
android android-softkeyboard
dan
source share