KeyHandler // Stop nerfing if target is not in the dictionary.

This commit is contained in:
ShikiSuen 2022-08-09 15:10:35 +08:00
parent 44a2ac6a3a
commit 1a7a6920d3
1 changed files with 6 additions and 1 deletions

View File

@ -176,7 +176,12 @@ extension KeyHandler {
// Enter
if input.isEnter {
if let keyHandlerDelegate = delegate {
if !keyHandlerDelegate.keyHandler(self, didRequestWriteUserPhraseWith: state, addToFilter: false) {
//
if input.isShiftHold, input.isCommandHold, !state.validToFilter {
IME.prtDebugIntel("2EAC1F7A")
errorCallback()
return true
} else if !keyHandlerDelegate.keyHandler(self, didRequestWriteUserPhraseWith: state, addToFilter: false) {
IME.prtDebugIntel("5B69CC8D")
errorCallback()
return true