Skip to content

Commit eb3e4e5

Browse files
authored
fix: 未定義のCtrl+キーの組み合わせをIMEで処理しないようにする (#310)
Ctrl+`など、IMEで明示的に処理していないCtrl+キーの組み合わせが 全角文字として入力されてしまう問題を修正。
1 parent 6ffbc87 commit eb3e4e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Core/Sources/Core/InputUtils/Actions/UserAction.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ public enum UserAction {
156156
return .suggest
157157
case ("u", [.control, .shift]): // Shift + Control + u
158158
return .startUnicodeInput
159+
case (_, let modifierFlags) where modifierFlags.contains(.control):
160+
// Controlが押されているが、上記のどのショートカットにも当てはまらない場合は、未知のアクションとして扱う
161+
return .unknown
159162

160163
case ("¥", [.shift, .option]), ("¥", [.shift]), ("\\", [.shift, .option]), ("\\", [.shift]):
161164
return .input(keyMap("|"))

0 commit comments

Comments
 (0)