InputHandler // Stop breaking composition buffer in certain cases.

This commit is contained in:
ShikiSuen 2022-11-19 19:52:18 +08:00
parent 1057a3fe82
commit d432f36bc5
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ extension InputHandler {
prehandling: if !skipStrokeHandling && currentLM.currentCassette.allowedKeys.contains(input.text) { prehandling: if !skipStrokeHandling && currentLM.currentCassette.allowedKeys.contains(input.text) {
if calligrapher.isEmpty, isWildcardKeyInput { if calligrapher.isEmpty, isWildcardKeyInput {
delegate.callError("3606B9C0") 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.tooltip = NSLocalizedString("Wildcard key cannot be the initial key.", comment: "") + "  "
newEmptyState.data.tooltipColorState = .redAlert newEmptyState.data.tooltipColorState = .redAlert
delegate.switchState(newEmptyState) delegate.switchState(newEmptyState)