From 23097921cfb4e6c86c947ff39438e943bda24f18 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 17 Nov 2024 11:10:21 +0100 Subject: [PATCH] Disable automatic Shift when pressing Compose --- srcs/juloo.keyboard2/KeyEventHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcs/juloo.keyboard2/KeyEventHandler.java b/srcs/juloo.keyboard2/KeyEventHandler.java index c54ffa5..0a8cd65 100644 --- a/srcs/juloo.keyboard2/KeyEventHandler.java +++ b/srcs/juloo.keyboard2/KeyEventHandler.java @@ -60,10 +60,10 @@ public final class KeyEventHandler { if (key == null) return; + // Stop auto capitalisation when pressing some keys switch (key.getKind()) { case Modifier: - // Stop auto capitalisation when activating a system modifier switch (key.getModifier()) { case CTRL: @@ -73,6 +73,9 @@ public final class KeyEventHandler break; } break; + case Compose_pending: + _autocap.stop(); + break; default: break; } }