abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/ComposeKey.java
diff options
context:
space:
mode:
authorJules Aguillon2024-09-10 22:16:49 +0200
committerJules Aguillon2024-09-10 22:16:49 +0200
commitc57ae83bfa2141edf637075696043cb98068684b (patch)
tree126b3312fb5381eb42b15fd6d64651e6383e14f9 /srcs/juloo.keyboard2/ComposeKey.java
parentc886a89b1188d32013dbad0622bb14c0fcf997cc (diff)
downloadunexpected-keyboard-c57ae83bfa2141edf637075696043cb98068684b.tar.gz
unexpected-keyboard-c57ae83bfa2141edf637075696043cb98068684b.zip
Compose sequences can end in internal key names
This adds the '\n' and '\t' sequences to showcase the new feature.
Diffstat (limited to 'srcs/juloo.keyboard2/ComposeKey.java')
-rw-r--r--srcs/juloo.keyboard2/ComposeKey.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/ComposeKey.java b/srcs/juloo.keyboard2/ComposeKey.java
index 9272bd0..9575486 100644
--- a/srcs/juloo.keyboard2/ComposeKey.java
+++ b/srcs/juloo.keyboard2/ComposeKey.java
@@ -42,7 +42,7 @@ public final class ComposeKey
else if (next_header == 0xFFFF) // String final state
{
int next_length = edges[next];
- return KeyValue.makeStringKey(
+ return KeyValue.getKeyByName(
new String(states, next + 1, next_length - 1));
}
else // Character final state.