Updated Keyboard Layout and IME (markdown)

CuriousTorvald
2022-09-19 11:38:04 +09:00
parent bf3fb48555
commit 02385b8756

@@ -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": "д",
/* ... */
},
```