mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-11 14:21:52 +09:00
Updated Keyboard Layout and IME (markdown)
@@ -73,3 +73,16 @@ return Object.freeze({
|
||||
The interpretation of the `arg` of the `accept` function is different for the Candidates and the Rewrite mode. On Rewrite mode, the `arg` is a number that indicates how many characters on the text buffer must be deleted before adding a Key Symbol; on Candidates mode, it's a "\x1E-separated" string of candidates.
|
||||
|
||||
Which key being a backspace depends on the Low Layer: if your Low Layer is Colemak and the Caps Lock is held while the High Layer is active, the `backspace` function will be invoked.
|
||||
|
||||
For the phonetic layouts, the `t` key must be replaced with `tf`, with an object that maps Low Layer key symbols to characters, such as:
|
||||
```javascript
|
||||
"tf": {
|
||||
"{": "Ю", "[": "ю",
|
||||
"}": "Щ", "]": "щ",
|
||||
"A": "А", "a": "а",
|
||||
"B": "Б", "b": "б",
|
||||
"C": "Ц", "c": "ц",
|
||||
"D": "Д", "d": "д",
|
||||
/* ... */
|
||||
},
|
||||
```
|
||||
Reference in New Issue
Block a user