ctlIME // Add two static situation marks.

This commit is contained in:
ShikiSuen 2022-09-01 13:42:36 +08:00
parent 2d5332c722
commit c6f03b42fd
1 changed files with 8 additions and 0 deletions

View File

@ -38,6 +38,10 @@ class ctlInputMethod: IMKInputController {
var state: InputStateProtocol = InputState.Empty()
/// ctlInputMethod
var isASCIIMode: Bool = false
/// ctlInputMethod
static var isASCIIModeSituation: Bool = false
/// ctlInputMethod
static var isVerticalTypingSituation: Bool = false
/// ctlInputMethod
func toggleASCIIMode() -> Bool {
@ -201,6 +205,10 @@ class ctlInputMethod: IMKInputController {
// client()
if !(sender is IMKTextInput) { return false }
//
ctlInputMethod.isASCIIModeSituation = isASCIIMode
ctlInputMethod.isVerticalTypingSituation = isVerticalTyping
// NSEvent nilApple InputMethodKit
guard let event = event else { return false }