InputHandler // Unseal `%quick` for IMKCandidates.

This commit is contained in:
ShikiSuen 2023-06-24 22:33:11 +08:00
parent 6c87a29fb0
commit b33d89abec
2 changed files with 2 additions and 8 deletions

View File

@ -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)

View File

@ -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)