mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-21 23:03:11 +01:00
Compose sequences can end in internal key names
This adds the '\n' and '\t' sequences to showcase the new feature.
This commit is contained in:
parent
c886a89b11
commit
c57ae83bfa
@ -3,5 +3,9 @@
|
||||
"s": "Š",
|
||||
"c": "Č",
|
||||
"z": "Ž"
|
||||
},
|
||||
"\\": {
|
||||
"n": "\\n",
|
||||
"t": "\\t"
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user