abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
authorJules Aguillon2024-02-14 22:41:35 +0100
committerJules Aguillon2024-02-14 22:52:25 +0100
commitd96577963e309c30bfc3e4d840eb5c3145961580 (patch)
treedb9ab381534fde4a9a6f994b5292f59cff3674af /srcs/juloo.keyboard2/Keyboard2.java
parentf369b5d90bf6e19b0cf145d4ad484df47202ddaa (diff)
downloadunexpected-keyboard-d96577963e309c30bfc3e4d840eb5c3145961580.tar.gz
unexpected-keyboard-d96577963e309c30bfc3e4d840eb5c3145961580.zip
Don't invert the pin entry layout
The pin entry layout shouldn't be inverted as the letter indications would be meaningless and the order would be opposite to what the option specifies. The enter and action key are swapped as the automatic swapping is also removed.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index 6440c7d..2a6025b 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -88,13 +88,19 @@ public class Keyboard2 extends InputMethodService
return KeyboardData.load(getResources(), layout_id);
}
- /** Load a layout that contains a numpad (eg. the pin entry). */
+ /** Load a layout that contains a numpad. */
KeyboardData loadNumpad(int layout_id)
{
return _config.modify_numpad(KeyboardData.load(getResources(), layout_id),
current_layout_unmodified());
}
+ KeyboardData loadPinentry(int layout_id)
+ {
+ return _config.modify_pinentry(KeyboardData.load(getResources(), layout_id),
+ current_layout_unmodified());
+ }
+
@Override
public void onCreate()
{
@@ -230,7 +236,7 @@ public class Keyboard2 extends InputMethodService
case InputType.TYPE_CLASS_PHONE:
case InputType.TYPE_CLASS_DATETIME:
if (_config.pin_entry_enabled)
- return loadNumpad(R.xml.pin);
+ return loadPinentry(R.xml.pin);
else
return loadNumpad(R.xml.numeric);
default: