From 36d3b9d9d03ab5116270ad84578de87a3a895011 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 19 Jun 2025 01:03:21 +0200 Subject: [PATCH] Fix selection mode not exited when selection cleared The selection mode was not exited when the selection was cleared with, for example, ctrl+x. --- srcs/juloo.keyboard2/Pointers.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcs/juloo.keyboard2/Pointers.java b/srcs/juloo.keyboard2/Pointers.java index 7cd52c5..4605c5f 100644 --- a/srcs/juloo.keyboard2/Pointers.java +++ b/srcs/juloo.keyboard2/Pointers.java @@ -108,7 +108,10 @@ public final class Pointers implements Handler.Callback { // No existing pointer, latch the key. if (latched) + { add_fake_pointer(key, kv, lock); + _handler.onPointerFlagsChanged(false); + } } else if ((ptr.flags & FLAG_P_FAKE) == 0) {} // Key already latched but not by a fake ptr, do nothing. @@ -118,6 +121,7 @@ public final class Pointers implements Handler.Callback removePtr(ptr); if (latched) add_fake_pointer(key, kv, lock); + _handler.onPointerFlagsChanged(false); } else if ((ptr.flags & FLAG_P_LOCKED) != 0) {} // Existing ptr is locked but [lock] is false, do not continue.