Disable Keyboard

Monkey Targets Forums/Android/Disable Keyboard

Aman(Posted 2011) [#1]
I am developing an app for someone and they insist on fixing a specific bug.

When the user click on a text box, it enables the keyboard.
But to disable it, you have to either click on the text box again or press Enter. There is a button that disables the keyboard but it does nothing. I do not have a kindle fire (Targeted device) and the release date is Christmas.

I searched till I finally found this: Keyboard.KEYCODE_CANCEL
http://developer.android.com/reference/android/inputmethodservice/Keyboard.html#KEYCODE_CANCEL

http://code.google.com/p/numpad-keyboard/source/browse/branches/threaded-ime/src/com/uray/numpad/NumpadService.java?spec=svn9&r=9

But KEYCODE_CANCEL return the value -3
You might be interested in this as well: KEYCODE_DONE = -4

I tried handling it by playing with:
public boolean onKeyDown( int key,KeyEvent event )

But it looks like KeyEvent does not return these values.

Any help would be appreciated.