diff options
| author | Jules Aguillon | 2024-04-03 23:55:38 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2024-04-03 23:59:18 +0200 |
| commit | 78f85e52a2d2afdb9a466b2c27fbe1699a2a15c1 (patch) | |
| tree | 8f3443a11adb31403ce215225f389cc14331f063 | |
| parent | 5e3a3f894b4d4b76f825eb150b9768f4d2a5b60a (diff) | |
| download | unexpected-keyboard-78f85e52a2d2afdb9a466b2c27fbe1699a2a15c1.tar.gz unexpected-keyboard-78f85e52a2d2afdb9a466b2c27fbe1699a2a15c1.zip | |
Fix space key without a symbol
The symbol on the space key was accidentally lost in be97364 when the
string "\r" (Java's only way to write "\x0D") was not replaced by
"\xE00D".
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 2a00a59..4462edf 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -265,6 +265,11 @@ public final class KeyValue implements Comparable<KeyValue> return new KeyValue(symbol, Kind.Char, c, flags); } + private static KeyValue charKey(int symbol, char c, int flags) + { + return charKey(String.valueOf((char)symbol), c, flags); + } + private static KeyValue modifierKey(String symbol, Modifier m, int flags) { if (symbol.length() > 1) @@ -447,7 +452,7 @@ public final class KeyValue implements Comparable<KeyValue> /* Spaces */ case "\\t": return charKey("\\t", '\t', 0); // Send the tab character - case "space": return charKey("\r", ' ', FLAG_KEY_FONT | FLAG_SECONDARY); + case "space": return charKey(0xE00D, ' ', FLAG_KEY_FONT | FLAG_SMALLER_FONT | FLAG_GREYED); case "nbsp": return charKey("\u237d", '\u00a0', FLAG_SMALLER_FONT); /* bidi */ |
