SessionCtl // Stop handling Emacs shortcuts when IMEState.ofEmpty().

This commit is contained in:
ShikiSuen 2023-01-07 14:18:42 +08:00
parent 7ffb4b96d6
commit 9a1278073d
1 changed files with 2 additions and 0 deletions

View File

@ -120,7 +120,9 @@ extension SessionCtl {
}
// 使 NSEvent Emacs NSEvent NSEvent
// Empty 使使
if eventToDeal.isEmacsKey {
if state.type == .ofEmpty { return false }
let verticalProcessing = (state.isCandidateContainer) ? isVerticalCandidateWindow : isVerticalTyping
eventToDeal = eventToDeal.convertFromEmacsKeyEvent(isVerticalContext: verticalProcessing)
}