Skip to content

Commit

Permalink
Support the nnbsp character
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow committed May 25, 2024
1 parent bea2e6c commit 46f3b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/Possible-key-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions srcs/juloo.keyboard2/KeyValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ public static KeyValue getKeyByName(String name)
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
Expand Down

0 comments on commit 46f3b41

Please sign in to comment.