KEYBOARD_ROWS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
THE PHYSICAL KEYBOARD DRAWN UNDER A GOMOJI GRID, by language: QWERTY for
English, AZERTY for French (the same 26 plain letters English's keys carry,
arranged the way a French keyboard is), and QWERTZ for German, with Ä, Ö and
Ü carried as keys of their own — German's letters, not English's plus a
fold. All three are three rows, so WordKeyboard's Enter and Backspace,
fixed to the last row, sit right whichever is drawn.
インポート
import { KEYBOARD_ROWS } from "@johnmorrisdotca/kotoba";
定義
const KEYBOARD_ROWS: Record<GomojiLanguage, readonly string[]> = {
en: ["qwertyuiop", "asdfghjkl", "zxcvbnm"],
fr: ["azertyuiop", "qsdfghjklm", "wxcvbn"],
de: ["qwertzuiopü", "asdfghjklöä", "yxcvbnm"],
pop: ["qwertyuiop", "asdfghjkl", "zxcvbnm"],
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
en | readonly string[] | |
fr | readonly string[] | |
de | readonly string[] | |
pop | readonly string[] |
例
import { KEYBOARD_ROWS } from "@johnmorrisdotca/kotoba";
console.log(KEYBOARD_ROWS);{
en: [ 'qwertyuiop', 'asdfghjkl', 'zxcvbnm' ],
fr: [ 'azertyuiop', 'qsdfghjklm', 'wxcvbn' ],
de: [ 'qwertzuiopü', 'asdfghjklöä', 'yxcvbnm' ],
pop: [ 'qwertyuiop', 'asdfghjkl', 'zxcvbnm' ]
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。