From 6f418727cfcdd9377a345c8a40e200f701aa7ac7 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 3 Jun 2023 10:00:16 +0200 Subject: [PATCH] Launcher activity: Don't handle the back button --- srcs/juloo.keyboard2/LauncherActivity.java | 3 +++ 1 file changed, 3 insertions(+) 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;