Support the nnbsp character

This commit is contained in:
Jules Aguillon 2024-05-26 00:49:15 +02:00
parent bea2e6cd1f
commit 46f3b41393
2 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,8 @@ These keys are sent to apps, which are free to ignore them. The keyboard do not
Value | Meaning
:------ | :------
`space` | Space bar.
`nbsp` | No-break space. Note: To input the narrow no-break space recommended for French, use `\u202F`.
`nbsp` | Non-breaking space.
`nnbsp` | Narrow non-breaking space.
`zwj` | Zero-width joiner.
`zwnj` | Zero-width non-joiner.

View File

@ -503,6 +503,7 @@ public final class KeyValue implements Comparable<KeyValue>
case "\\n": return charKey("\\n", '\n', 0); // Send the newline character
case "space": return charKey(0xE00D, ' ', FLAG_KEY_FONT | FLAG_SMALLER_FONT | FLAG_GREYED);
case "nbsp": return charKey("\u237d", '\u00a0', FLAG_SMALLER_FONT);
case "nnbsp": return charKey("\u2423", '\u202F', FLAG_SMALLER_FONT);
/* bidi */
case "lrm": return charKey("", '\u200e', 0); // Send left-to-right mark