diff options
| author | Jules Aguillon | 2022-12-10 19:39:22 +0100 |
|---|---|---|
| committer | Jules Aguillon | 2022-12-10 19:39:22 +0100 |
| commit | c17b53ce7f16c202f139aff98a65f8d859f4412b (patch) | |
| tree | 86a6bb77a9ef51dacb0802a8fa582d400e5f0f97 /srcs/juloo.keyboard2/KeyboardData.java | |
| parent | 940fc81193097cd46a6ea31dd8137d3943226c40 (diff) | |
| download | unexpected-keyboard-c17b53ce7f16c202f139aff98a65f8d859f4412b.tar.gz unexpected-keyboard-c17b53ce7f16c202f139aff98a65f8d859f4412b.zip | |
Add option 'numpad_layout'
Allow choosing whether to show the high or the low digits first. The
numeric pane and the numpad are affected by the option.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyboardData.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyboardData.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java index 7b50f98..550af40 100644 --- a/srcs/juloo.keyboard2/KeyboardData.java +++ b/srcs/juloo.keyboard2/KeyboardData.java @@ -462,12 +462,17 @@ class KeyboardData public Key apply(Key k) { - return new Key(apply(k.key0), apply(k.key1), apply(k.key2), + return new Key(apply_key0(k.key0), apply(k.key1), apply(k.key2), apply(k.key3), apply(k.key4), k.width, k.shift, k.edgekeys, k.indication); } - private Corner apply(Corner c) + protected Corner apply_key0(Corner c) + { + return apply(c); + } + + protected Corner apply(Corner c) { if (c == null) return null; |
