InputHandler // Allow typing wildcard symbol as punctuation.
This commit is contained in:
parent
3708c1e124
commit
59383f0e20
|
@ -256,12 +256,8 @@ 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")
|
||||||
var newEmptyState = compositor.isEmpty ? IMEState.ofEmpty() : generateStateOfInputting()
|
delegate.callNotification(NSLocalizedString("Wildcard key cannot be the initial key.", comment: ""))
|
||||||
newEmptyState.tooltip = NSLocalizedString("Wildcard key cannot be the initial key.", comment: "")
|
return nil
|
||||||
newEmptyState.data.tooltipColorState = .redAlert
|
|
||||||
newEmptyState.tooltipDuration = 1.0
|
|
||||||
delegate.switchState(newEmptyState)
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
if isStrokesFull {
|
if isStrokesFull {
|
||||||
delegate.callError("2268DD51: calligrapher is full, clearing calligrapher.")
|
delegate.callError("2268DD51: calligrapher is full, clearing calligrapher.")
|
||||||
|
|
Loading…
Reference in New Issue