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