abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
diff options
context:
space:
mode:
authorJules Aguillon2023-06-03 10:00:16 +0200
committerJules Aguillon2023-06-03 10:00:16 +0200
commit6f418727cfcdd9377a345c8a40e200f701aa7ac7 (patch)
tree3bed5bf580d73bc219312c8248a254f429cb8f06 /srcs/juloo.keyboard2
parent22d407c46a56231efc3d1192616d7923c9228bf1 (diff)
downloadunexpected-keyboard-6f418727cfcdd9377a345c8a40e200f701aa7ac7.tar.gz
unexpected-keyboard-6f418727cfcdd9377a345c8a40e200f701aa7ac7.zip
Launcher activity: Don't handle the back button
Diffstat (limited to 'srcs/juloo.keyboard2')
-rw-r--r--srcs/juloo.keyboard2/LauncherActivity.java3
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;