abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/Keyboard2.java
diff options
context:
space:
mode:
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2.java')
-rw-r--r--srcs/juloo.keyboard2/Keyboard2.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2.java b/srcs/juloo.keyboard2/Keyboard2.java
index abea412..5b7935e 100644
--- a/srcs/juloo.keyboard2/Keyboard2.java
+++ b/srcs/juloo.keyboard2/Keyboard2.java
@@ -294,10 +294,13 @@ public class Keyboard2 extends InputMethodService
if (_config.programming_layout == -1)
return;
KeyboardData layout =
- getLayout(_config.programming_layout).replaceKeys(key -> {
- if (key != null && key.eventCode == KeyValue.EVENT_SWITCH_PROGRAMMING)
- return KeyValue.getKeyByName("switch_text");
- return key;
+ getLayout(_config.programming_layout).replaceKeys(new KeyboardData.MapKeys() {
+ public KeyValue apply(KeyValue key)
+ {
+ if (key != null && key.eventCode == KeyValue.EVENT_SWITCH_PROGRAMMING)
+ return KeyValue.getKeyByName("switch_text");
+ return key;
+ }
});
_keyboardView.setKeyboard(layout);
}