KeyHandler // Fix an issue with length limitation in PCB.
This commit is contained in:
parent
df57b81bfd
commit
4db10fb9e3
|
@ -174,7 +174,10 @@ extension KeyHandler {
|
||||||
} else if currentLM.hasUnigramsFor(key: " ") {
|
} else if currentLM.hasUnigramsFor(key: " ") {
|
||||||
compositor.insertKey(" ")
|
compositor.insertKey(" ")
|
||||||
walk()
|
walk()
|
||||||
let inputting = buildInputtingState
|
// 一邊吃一邊屙(僅對位列黑名單的 App 用這招限制組字區長度)。
|
||||||
|
let textToCommit = commitOverflownComposition
|
||||||
|
var inputting = buildInputtingState
|
||||||
|
inputting.textToCommit = textToCommit
|
||||||
stateCallback(inputting)
|
stateCallback(inputting)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@ -293,7 +296,10 @@ extension KeyHandler {
|
||||||
if composer.isEmpty {
|
if composer.isEmpty {
|
||||||
compositor.insertKey("_punctuation_list")
|
compositor.insertKey("_punctuation_list")
|
||||||
walk()
|
walk()
|
||||||
let inputting = buildInputtingState
|
// 一邊吃一邊屙(僅對位列黑名單的 App 用這招限制組字區長度)。
|
||||||
|
let textToCommit = commitOverflownComposition
|
||||||
|
var inputting = buildInputtingState
|
||||||
|
inputting.textToCommit = textToCommit
|
||||||
stateCallback(inputting)
|
stateCallback(inputting)
|
||||||
stateCallback(buildCandidate(state: inputting))
|
stateCallback(buildCandidate(state: inputting))
|
||||||
} else { // 不要在注音沒敲完整的情況下叫出統合符號選單。
|
} else { // 不要在注音沒敲完整的情況下叫出統合符號選單。
|
||||||
|
|
|
@ -274,7 +274,10 @@ extension KeyHandler {
|
||||||
|
|
||||||
compositor.insertKey(customPunctuation)
|
compositor.insertKey(customPunctuation)
|
||||||
walk()
|
walk()
|
||||||
let inputting = buildInputtingState
|
// 一邊吃一邊屙(僅對位列黑名單的 App 用這招限制組字區長度)。
|
||||||
|
let textToCommit = commitOverflownComposition
|
||||||
|
var inputting = buildInputtingState
|
||||||
|
inputting.textToCommit = textToCommit
|
||||||
stateCallback(inputting)
|
stateCallback(inputting)
|
||||||
|
|
||||||
// 從這一行之後開始,就是針對逐字選字模式的單獨處理。
|
// 從這一行之後開始,就是針對逐字選字模式的單獨處理。
|
||||||
|
|
Loading…
Reference in New Issue