diff options
| author | Jules Aguillon | 2023-06-03 10:00:16 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-06-03 10:00:16 +0200 |
| commit | 6f418727cfcdd9377a345c8a40e200f701aa7ac7 (patch) | |
| tree | 3bed5bf580d73bc219312c8248a254f429cb8f06 /srcs/juloo.keyboard2/LauncherActivity.java | |
| parent | 22d407c46a56231efc3d1192616d7923c9228bf1 (diff) | |
| download | unexpected-keyboard-6f418727cfcdd9377a345c8a40e200f701aa7ac7.tar.gz unexpected-keyboard-6f418727cfcdd9377a345c8a40e200f701aa7ac7.zip | |
Launcher activity: Don't handle the back button
Diffstat (limited to 'srcs/juloo.keyboard2/LauncherActivity.java')
| -rw-r--r-- | srcs/juloo.keyboard2/LauncherActivity.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/LauncherActivity.java b/srcs/juloo.keyboard2/LauncherActivity.java index ac6cc9e..35ef461 100644 --- a/srcs/juloo.keyboard2/LauncherActivity.java +++ b/srcs/juloo.keyboard2/LauncherActivity.java @@ -37,6 +37,9 @@ public class LauncherActivity extends Activity { public boolean onUnhandledKeyEvent(View v, KeyEvent ev) { + // Don't handle the back key + if (ev.getKeyCode() == KeyEvent.KEYCODE_BACK) + return false; // Key release of modifiers would erase interesting data if (KeyEvent.isModifierKey(ev.getKeyCode())) return false; |
