I'm having a GLSurfaceView where I render my GUI. In one case I need the user to input a number, and to achieve this I'm using a FrameLayout with my GLSurfaceView on top and another dummy layout with an EditText behind it. When input is required I focus the EditText and force the soft keyboard to show. Then I listen for various ways to end the input, enter key, IME_ACTION_DONE, back-key etc.
However I just realized one case where this is not working. On some keyboards there is a "hide keyboard" button that does not send a keycode at all (some send a keycode-back from this key). The keyboard just closes and I can't determine that the input was done. And the EditText is still focused.
Is there any way to catch this event, or any other way to see if the keyboard was closed pƄ the user?