abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authordoak2023-04-08 20:10:41 +0200
committerJules Aguillon2023-04-10 13:14:50 +0200
commitd4be979696e334bd3306ff7c129ddb086e833047 (patch)
treec710d8827fe16a9f6d410917d299bdde13a74c23
parent1aaf427883be8db7c8d9071d2efd8111908a4fb5 (diff)
downloadunexpected-keyboard-d4be979696e334bd3306ff7c129ddb086e833047.tar.gz
unexpected-keyboard-d4be979696e334bd3306ff7c129ddb086e833047.zip
Do not lock modifiers if sliding a key
This unconditionally removes all pointers (touches) pressing modifiers which are not already locked, avoiding that the (currently) latched modifier will be locked aventually. This can be verfified while sliding the space bar to move the cursor left or right. Closes #319.
-rw-r--r--srcs/juloo.keyboard2/Pointers.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Pointers.java b/srcs/juloo.keyboard2/Pointers.java
index 1b62ca7..c6d04ea 100644
--- a/srcs/juloo.keyboard2/Pointers.java
+++ b/srcs/juloo.keyboard2/Pointers.java
@@ -113,6 +113,7 @@ public final class Pointers implements Handler.Callback
return;
if (ptr.sliding)
{
+ clearLatched();
onTouchUp_sliding(ptr);
return;
}