InputHandler // Remove (BOOL)keyConsumedByStrokes.
This commit is contained in:
parent
dd13a1218e
commit
c11cf4200c
|
@ -190,7 +190,6 @@ extension InputHandler {
|
||||||
var wildcardKey: String { currentLM.cassetteWildcardKey } // 花牌鍵。
|
var wildcardKey: String { currentLM.cassetteWildcardKey } // 花牌鍵。
|
||||||
let isWildcardKeyInput: Bool = (input.text == wildcardKey && !wildcardKey.isEmpty)
|
let isWildcardKeyInput: Bool = (input.text == wildcardKey && !wildcardKey.isEmpty)
|
||||||
|
|
||||||
var keyConsumedByStrokes = false
|
|
||||||
let skipStrokeHandling =
|
let skipStrokeHandling =
|
||||||
input.isReservedKey || input.isNumericPadKey || input.isNonLaptopFunctionKey
|
input.isReservedKey || input.isNumericPadKey || input.isNonLaptopFunctionKey
|
||||||
|| input.isControlHold || input.isOptionHold || input.isShiftHold || input.isCommandHold
|
|| input.isControlHold || input.isOptionHold || input.isShiftHold || input.isCommandHold
|
||||||
|
@ -224,7 +223,6 @@ extension InputHandler {
|
||||||
if isWildcardKeyInput {
|
if isWildcardKeyInput {
|
||||||
break prehandling
|
break prehandling
|
||||||
}
|
}
|
||||||
keyConsumedByStrokes = true
|
|
||||||
|
|
||||||
if !isStrokesFull {
|
if !isStrokesFull {
|
||||||
delegate.switchState(generateStateOfInputting())
|
delegate.switchState(generateStateOfInputting())
|
||||||
|
@ -309,12 +307,6 @@ extension InputHandler {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 是說此時注拼槽並非為空、卻還沒組音。這種情況下只可能是「注拼槽內只有聲調」。
|
|
||||||
if keyConsumedByStrokes {
|
|
||||||
// 以回呼組字狀態的方式來執行 setInlineDisplayWithCursor()。
|
|
||||||
delegate.switchState(generateStateOfInputting())
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue