From d432f36bc598373302fc20c2de929cd06e7ec718 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 19 Nov 2022 19:52:18 +0800 Subject: [PATCH] InputHandler // Stop breaking composition buffer in certain cases. --- Source/Modules/InputHandler_HandleComposition.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/InputHandler_HandleComposition.swift b/Source/Modules/InputHandler_HandleComposition.swift index 729d1f9a..c81836ac 100644 --- a/Source/Modules/InputHandler_HandleComposition.swift +++ b/Source/Modules/InputHandler_HandleComposition.swift @@ -198,7 +198,7 @@ extension InputHandler { prehandling: if !skipStrokeHandling && currentLM.currentCassette.allowedKeys.contains(input.text) { if calligrapher.isEmpty, isWildcardKeyInput { delegate.callError("3606B9C0") - var newEmptyState = IMEState.ofEmpty() + var newEmptyState = compositor.isEmpty ? IMEState.ofEmpty() : generateStateOfInputting() newEmptyState.tooltip = NSLocalizedString("Wildcard key cannot be the initial key.", comment: "") + "  " newEmptyState.data.tooltipColorState = .redAlert delegate.switchState(newEmptyState)