InputHandler // Still block leading letter-type wildcardKey.
This commit is contained in:
parent
7eadd01904
commit
45925c3263
|
@ -256,6 +256,14 @@ extension InputHandler {
|
||||||
prehandling: if !skipStrokeHandling && currentLM.isThisCassetteKeyAllowed(key: inputText) {
|
prehandling: if !skipStrokeHandling && currentLM.isThisCassetteKeyAllowed(key: inputText) {
|
||||||
if calligrapher.isEmpty, isWildcardKeyInput {
|
if calligrapher.isEmpty, isWildcardKeyInput {
|
||||||
delegate.callError("3606B9C0")
|
delegate.callError("3606B9C0")
|
||||||
|
if input.beganWithLetter {
|
||||||
|
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
|
||||||
|
}
|
||||||
delegate.callNotification(NSLocalizedString("Wildcard key cannot be the initial key.", comment: ""))
|
delegate.callNotification(NSLocalizedString("Wildcard key cannot be the initial key.", comment: ""))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue