Hi,
our Android HW has no touchscreen and no keyboard. We just have DPAD
keys, menu, home and back.
To use Cupcake's soft keyboard I extended onKeyDown in
InputMethodService to push DPAD_LEFT, DPAD_RIGHT, DPAD_UP, DPAD_DOWN
and DPAD_CENTER events to onKeyDown of class KeyboardView. Now we can
control the SoftKeyboard with these keys. The problem is that we do
not get DPAD_CENTER as this key event is already consumed by the
focused text box when writing.
Sure, this is exactly what you want if you control the soft keyboard
by touch but there should be a way to tell InputMethodService to
consume all key events before the underlieing activity can do so.
Currently its the other way round I think.
We need the DPAD_CENTER key to press the selected key (at the moment
we do this with the menu button, but this is ugly).
Do you plan to further extend the InputMethodService for such
constrained environments? Would be very helpful ;-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---