abouttreesummaryrefslogcommitdiff
diff options
context:
space:
mode:
authorJules Aguillon2023-12-21 20:59:30 +0100
committerJules Aguillon2023-12-21 20:59:30 +0100
commit2db4ae3730865ba58db97dbcb912098f6ef5b629 (patch)
tree3fb01f310fdb7228d5a5e640677e3a9df4919a6b
parent2aecbca9ac6a7c6309e982a42e70a9aa293f0fa3 (diff)
downloadunexpected-keyboard-2db4ae3730865ba58db97dbcb912098f6ef5b629.tar.gz
unexpected-keyboard-2db4ae3730865ba58db97dbcb912098f6ef5b629.zip
Fix the number row showing up on top of pinentry
This wasn't intended and was caused by the "current_layout_unmodified" optimisation.
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 6bc2103..1330b96 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -57,6 +57,8 @@ public class Keyboard2 extends InputMethodService
/** Layout currently visible. */
KeyboardData current_layout()
{
+ if (_currentSpecialLayout != null)
+ return _currentSpecialLayout;
return _config.modify_layout(current_layout_unmodified());
}