diff options
author | Sven Gothel <[email protected]> | 2013-03-21 20:40:41 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-03-21 20:40:41 +0100 |
commit | 58ebd43a78491281e2c3b012666220ed47634c7e (patch) | |
tree | 8f092d3dbf158c8173d9d95024df63ca37a59d19 /src/test-native/mesa-demos-patched/eglut/eglut.c | |
parent | 98f6f99ddc6643cfa540d6c85c64c7f8510cc1ea (diff) |
NEWT/Android: Fix BACK button implementation, use different KeyCode mappings and allowing native action to be suppressed.
- Don't trust soft-kbd visibility state, but perform invisible action. If the latter
was successful - soft-kbd was visible before.
- Map BACK to VK_KEYBOARD_INVISIBLE and propagate it,
if soft-kbd was visible before.
No native default action is performed.
- Map BACK to VK_ESCAPE event and propagate it,
if soft-kbd was invisible _and_ an activity was registered via registerActivity(Activity),
i.e. by NewtBaseActivity.
Otherwise proceed w/ default action (-> activity.finish()).
- If the KeyListener consumed the [EVENT_KEY_RELEASED, VK_ESCAPE] event,
it will be suppressed and no default action performed.
This allows applications to have a custom 'ESCAPE' or 'BACK' handling.
Otherwise (not consumed) the default action is performed.
Diffstat (limited to 'src/test-native/mesa-demos-patched/eglut/eglut.c')
0 files changed, 0 insertions, 0 deletions