Inputmap and keypress handling

alain bertrand

Member
Licensed User
Longtime User
Hi,
I use an inputmap to select, check, uncheck one or more item.
If I press the KEYCODE_BACK button when the inputmap's view is raised and has the modal focus, the app behaves the same way as pressing the 'OK button'.
'Sub Activity_KeyPress(KeyCode As Int) As Boolean' doesn't handle the event (I guess it is not an Activity_ event, it happens elsewhere).
I'd like the 'OK button' runs the program normally, but the KEYCODE_BACK hides the inputmap and returns.
How to hide an inputmap without selection (as it has only one 'OK' button) ? or How to handle the KeyPress in this context ?
Thanks.
 
Top