From b33d89abec637df6f0aad39047a7f415fe0aa9a7 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 24 Jun 2023 22:33:11 +0800 Subject: [PATCH] InputHandler // Unseal `%quick` for IMKCandidates. --- Source/Modules/InputHandler_HandleComposition.swift | 5 +---- Source/Modules/InputHandler_HandleStates.swift | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/Modules/InputHandler_HandleComposition.swift b/Source/Modules/InputHandler_HandleComposition.swift index b94a4c54..20c52d98 100644 --- a/Source/Modules/InputHandler_HandleComposition.swift +++ b/Source/Modules/InputHandler_HandleComposition.swift @@ -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) diff --git a/Source/Modules/InputHandler_HandleStates.swift b/Source/Modules/InputHandler_HandleStates.swift index c4b3f97b..843bddb1 100644 --- a/Source/Modules/InputHandler_HandleStates.swift +++ b/Source/Modules/InputHandler_HandleStates.swift @@ -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)