InputHandler // Let g…S…OfInputting() returns .ofAbortion() if needed.

This commit is contained in:
ShikiSuen 2023-02-13 18:50:47 +08:00
parent 0759969f6f
commit 4c0445115b
2 changed files with 4 additions and 0 deletions

View File

@ -111,6 +111,9 @@ public class InputHandler: InputHandlerProtocol {
isCodePointInputMode = false
}
/// /
var isConsideredEmptyForNow: Bool { compositor.isEmpty && isComposerOrCalligrapherEmpty }
// MARK: - Hanin Keyboard Symbol Mode.
var isHaninKeyboardSymbolMode = false

View File

@ -19,6 +19,7 @@ extension InputHandler {
///
public func generateStateOfInputting(sansReading: Bool = false) -> IMEStateProtocol {
if isConsideredEmptyForNow { return IMEState.ofAbortion() }
let cpInput = isCodePointInputMode && !sansReading
/// (Update the composing buffer)
/// IMEStateData NSAttributeString