mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-24 16:23:14 +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": "Š",
|
"s": "Š",
|
||||||
"c": "Č",
|
"c": "Č",
|
||||||
"z": "Ž"
|
"z": "Ž"
|
||||||
|
},
|
||||||
|
"\\": {
|
||||||
|
"n": "\\n",
|
||||||
|
"t": "\\t"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ public final class ComposeKey
|
|||||||
else if (next_header == 0xFFFF) // String final state
|
else if (next_header == 0xFFFF) // String final state
|
||||||
{
|
{
|
||||||
int next_length = edges[next];
|
int next_length = edges[next];
|
||||||
return KeyValue.makeStringKey(
|
return KeyValue.getKeyByName(
|
||||||
new String(states, next + 1, next_length - 1));
|
new String(states, next + 1, next_length - 1));
|
||||||
}
|
}
|
||||||
else // Character final state.
|
else // Character final state.
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user