Hi
The correct input field position is very basic requirement for a normal non-game app, if Corona SDK cannot provide their owned widget input in Android at this moment, as least SDK can provide as much key response as possible.
The keyboard dismissed or not is very important for programmer to put textfield or textbox in right position. Corona SDK should sent back the key response as much as possible.
There are several ways to dismiss keyboard such as : “Back” key, “V” key or like HTC series’ “square key” in HTC soft keyboard. (which can be found in attached image with red circle.)
I can get “Back” key response by [[Runtime:addEventListener( “key”, onKeyEvent )]], but I failed to get other key response.
According Google Android SDK seem to have solution for this issue, but it still need Coron Lab to implement it in corona sdk.
=============================================================================
public boolean onKeyPreIme (int keyCode, KeyEvent event)
Added in API level 3
Handle a key event before it is processed by any input method associated with the view hierarchy. This can be used to intercept key events in special situations before the IME consumes them; a typical example would be handling the BACK key to update the application’s UI instead of allowing the IME to see it and close itself.
Parameters keyCode The value in event.getKeyCode(). event Description of the key event.
Returns
If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false.