diff options
| author | Jules Aguillon | 2022-05-29 12:27:46 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-05-29 12:27:46 +0200 |
| commit | 2e81cb5cf717ef68df9bd66d2af1c7f5ccaaa3fe (patch) | |
| tree | 6349235c0f0e63371a910428be3915fad016eef5 /srcs/juloo.keyboard2/Keyboard2.java | |
| parent | 89dfc782a7985053728d54072fb104728796a843 (diff) | |
| download | unexpected-keyboard-2e81cb5cf717ef68df9bd66d2af1c7f5ccaaa3fe.tar.gz unexpected-keyboard-2e81cb5cf717ef68df9bd66d2af1c7f5ccaaa3fe.zip | |
Automatically place localized keys on the layouts
Layouts no longer need to mention every localized keys and dead keys.
They are now placed automatically starting from the second row on the
bottom-right corner.
The "loc " prefix is not removed to still be able to define a more
optimal and consistent placement for some extra keys (eg. 'ß' near 's').
Programming layouts no longer need to place every dead keys.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java index d9f0012..8ebf0b8 100644 --- a/srcs/juloo.keyboard2/Keyboard2.java +++ b/srcs/juloo.keyboard2/Keyboard2.java @@ -295,7 +295,7 @@ public class Keyboard2 extends InputMethodService if (_config.programming_layout == -1) return; KeyboardData layout = - getLayout(_config.programming_layout).replaceKeys(new KeyboardData.MapKeys() { + getLayout(_config.programming_layout).mapKeys(new KeyboardData.MapKeyValues() { public KeyValue apply(KeyValue key) { if (key != null && key.eventCode == KeyValue.EVENT_SWITCH_PROGRAMMING) |
