Detecting Keyboard-Close Button

Hi,

Is there a way to detect the Android ‘keyboard close button’ ?

I use the ‘Runtime:addEventListener( “key”, onKeyEvent )’, and it isn’t detected. That leaves my ‘native.newTextField()’ hanging as I move it manually (‘CoronaWindowMovesWhenKeyboardAppears = false’).

If I use ‘CoronaWindowMovesWhenKeyboardAppears = true’ in my build settings, it moves everything  when the keyboard is closed and there isn’t the hanging problem.

I have found a way to detect this. It is using the plugin ‘more-info’.  I would need to continuously monitor the keyboard height to know whether the keyboard has been closed or not.

 function checkKeyboardHeight() local keyboardWidth, keyboardHeight = moreInfo.getKeyboardSize() -- if keyboardHeight == 0 then keyboard is closed end Runtime:addEventListener( "enterFrame", checkKeyboardHeight )

I have found a way to detect this. It is using the plugin ‘more-info’.  I would need to continuously monitor the keyboard height to know whether the keyboard has been closed or not.

 function checkKeyboardHeight() local keyboardWidth, keyboardHeight = moreInfo.getKeyboardSize() -- if keyboardHeight == 0 then keyboard is closed end Runtime:addEventListener( "enterFrame", checkKeyboardHeight )