I asked this on the Android dev mailing list, and on stackoverflow; nobody answered.
In my application, I bring the soft keyboard on from time to time, and
it looks like events for the DEL key are not delivered. The method in
question is at
and the whole Java class is at
http://squeakvm-tablet.googlecode.com/h ... ak/andro...
Any alphanumeric key or Enter (Return) tapped on the soft keyboard is
passed to the application except for KEYCODE_DEL. I tried to replace
KEYCODE_DEL in the case clause with anything else (e. g. with code for
for hardware button PAGE_UP), and the clause takes control when that
button is pressed.
I did not subclass the Android Keyboard class, just used the default
What can be done in order to receive events for KEYCODE_DEL? Is
deriving a subclass the only way?
PS After doing some research, I found that e. g. LatinIME implementation found under
http://android.git.kernel.org/?p=platfo ... inIME.java
(see the handleBackspace function ca. line 1282) uses rather contrived logic to handle certain keys, attempting to do some edit on its own, while all I need is to pass all keycodes to the app.
If this is the case with default Android soft kbd implementation then perhaps I need to subclass my own soft kbd...