Repository navigation
変換候補の選択キーを任意の9文字に設定できるようにする - #550
Merged
Merged
Conversation
設定画面のPickerに「カスタム…」を追加し、シートでスペースを除くASCII文字9文字を 重複なし (大文字小文字は区別しない) で入力できるようにする。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#549
概要
変換候補を選ぶキーは「123456789」「ASDFGHJKL」「AOEUIDHTN」の3つから選ぶしかありませんでした。特殊な配列を使っている人も自分の配列に合ったキーを使えるように、9文字を自由に設定できるようにします。
設定画面
一般タブの「変換候補の決定に使用するキー」の末尾に「カスタム…」を追加。選ぶとシートが開き、そこで9文字を入力します。
バリデーション
!〜~)であることAaは重複扱い)正しい値は大文字にそろえて保存します。シートではエラーをその場で表示し、正しい値のときだけ完了ボタンを押せます。エラーの有無でシートの高さが変わらないように、エラー表示の領域は常に確保しています。
Shiftが必要な記号(
!など)やキーバインドに割り当てたキー(xなど)は、登録しても候補の選択には使えません。ただし、キーバインドはあとから変えることもあるのでエラーにはせず、シートの説明文に注意書きを入れるだけにしました。保存済みの値・iCloudから取り込んだ値
起動時に読み込んだ値と、iCloudの設定同期で受け取った値にも同じバリデーションを通し、不正ならデフォルトの
123456789に戻します。手で書き換えられた値などで、候補パネルが範囲外の文字を参照してクラッシュしないようにするためです。保存形式(selectCandidateKeysの文字列)は変えていないので、以前のバージョンの値はそのまま使えます。