InputHandler // Specify display durations for tooltips.
This commit is contained in:
parent
1fe0442042
commit
6ff42a8dbc
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue