Skip to content

Commit

Permalink
feat: かな入力モードからAsciiモードへの遷移を仮実装
Browse files Browse the repository at this point in the history
  • Loading branch information
emanon001 committed Feb 19, 2023
1 parent 0f3961a commit 0120108
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Skk.elm
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ updateKanaKakuteiInputMode { isHiragana, kakutei, convertModeValue, context, inp
{ kakutei = midashiKakutei, mikakutei = midashiMikakutei }
)

else if isSwitchToAsciiModeKey inputKey then
-- TODO: Asciiモードに切り替え
default

else if isSwitchToKanaModeKey inputKey then
-- ひらがなモードとカタカナモードの切り替え
if isHiragana then
Expand Down Expand Up @@ -450,6 +454,11 @@ isSwitchToHiraganaModeKey { key, ctrl } =
key == "j" && ctrl


isSwitchToAsciiModeKey : SkkInputKey -> Bool
isSwitchToAsciiModeKey { key } =
key == "l"


isSwitchToMidashiInputModeKey : SkkInputKey -> Bool
isSwitchToMidashiInputModeKey { key } =
let
Expand Down

0 comments on commit 0120108

Please sign in to comment.