InputHandler // Unseal `%quick` for IMKCandidates.
This commit is contained in:
parent
6c87a29fb0
commit
b33d89abec
|
@ -271,10 +271,7 @@ extension InputHandler {
|
||||||
|
|
||||||
if !isStrokesFull {
|
if !isStrokesFull {
|
||||||
var result = generateStateOfInputting()
|
var result = generateStateOfInputting()
|
||||||
// 針對 IMK 選字窗停用 `%quick` 特性,因為按鍵邏輯實在難以實作。
|
if !calligrapher.isEmpty, let fetched = currentLM.cassetteQuickSetsFor(key: calligrapher) {
|
||||||
if !prefs.useIMKCandidateWindow, !calligrapher.isEmpty,
|
|
||||||
let fetched = currentLM.cassetteQuickSetsFor(key: calligrapher)
|
|
||||||
{
|
|
||||||
result.candidates = fetched.map { (keyArray: [""], value: $0.description) }
|
result.candidates = fetched.map { (keyArray: [""], value: $0.description) }
|
||||||
}
|
}
|
||||||
delegate.switchState(result)
|
delegate.switchState(result)
|
||||||
|
|
|
@ -507,10 +507,7 @@ extension InputHandler {
|
||||||
switch isConsideredEmptyForNow {
|
switch isConsideredEmptyForNow {
|
||||||
case false:
|
case false:
|
||||||
var result = generateStateOfInputting()
|
var result = generateStateOfInputting()
|
||||||
// 針對 IMK 選字窗停用 `%quick` 特性,因為按鍵邏輯實在難以實作。
|
if prefs.cassetteEnabled, let fetched = currentLM.cassetteQuickSetsFor(key: calligrapher) {
|
||||||
if prefs.cassetteEnabled, !prefs.useIMKCandidateWindow,
|
|
||||||
let fetched = currentLM.cassetteQuickSetsFor(key: calligrapher)
|
|
||||||
{
|
|
||||||
result.candidates = fetched.map { (keyArray: [""], value: $0.description) }
|
result.candidates = fetched.map { (keyArray: [""], value: $0.description) }
|
||||||
}
|
}
|
||||||
delegate.switchState(result)
|
delegate.switchState(result)
|
||||||
|
|
Loading…
Reference in New Issue