diff --git a/Source/Modules/InputHandler_HandleComposition.swift b/Source/Modules/InputHandler_HandleComposition.swift index 01b9fd35..47ca1e42 100644 --- a/Source/Modules/InputHandler_HandleComposition.swift +++ b/Source/Modules/InputHandler_HandleComposition.swift @@ -206,6 +206,7 @@ extension InputHandler { var newEmptyState = compositor.isEmpty ? IMEState.ofEmpty() : generateStateOfInputting() newEmptyState.tooltip = NSLocalizedString("Wildcard key cannot be the initial key.", comment: "") + "  " newEmptyState.data.tooltipColorState = .redAlert + newEmptyState.tooltipDuration = 1.0 delegate.switchState(newEmptyState) return true } diff --git a/Source/Modules/InputHandler_HandleStates.swift b/Source/Modules/InputHandler_HandleStates.swift index e8ec0a36..b2ce2d4b 100644 --- a/Source/Modules/InputHandler_HandleStates.swift +++ b/Source/Modules/InputHandler_HandleStates.swift @@ -160,6 +160,7 @@ extension InputHandler { var newState = generateStateOfInputting() newState.tooltip = NSLocalizedString(tooltipMessage, comment: "") + "  " newState.data.tooltipColorState = .normal + newState.tooltipDuration = 1.85 delegate.switchState(newState) return true } @@ -178,6 +179,7 @@ extension InputHandler { var newState = generateStateOfInputting() newState.tooltip = NSLocalizedString(tooltipMessage, comment: "") + "  " newState.data.tooltipColorState = .normal + newState.tooltipDuration = 1.85 delegate.switchState(newState) return true }