SessionCtl // Move some tasks from setValue() to activateServer().

This commit is contained in:
ShikiSuen 2022-11-14 11:36:42 +08:00
parent 11edfbddfb
commit bd9a5c6c45
1 changed files with 2 additions and 3 deletions

View File

@ -194,6 +194,7 @@ extension SessionCtl {
inputHandler.ensureKeyboardParser() inputHandler.ensureKeyboardParser()
Self.theShiftKeyDetector.alsoToggleWithLShift = PrefMgr.shared.togglingAlphanumericalModeWithLShift Self.theShiftKeyDetector.alsoToggleWithLShift = PrefMgr.shared.togglingAlphanumericalModeWithLShift
Self.isVerticalTyping = isVerticalTyping
if #available(macOS 10.15, *) { if #available(macOS 10.15, *) {
if isASCIIMode, PrefMgr.shared.disableShiftTogglingAlphanumericalMode { isASCIIMode = false } if isASCIIMode, PrefMgr.shared.disableShiftTogglingAlphanumericalMode { isASCIIMode = false }
@ -233,9 +234,7 @@ extension SessionCtl {
_ = tag // _ = tag //
_ = sender // _ = sender //
DispatchQueue.main.async { [self] in DispatchQueue.main.async { [self] in
let mostRecentInputMode = PrefMgr.shared.mostRecentInputMode inputMode = .init(rawValue: value as? String ?? PrefMgr.shared.mostRecentInputMode) ?? .imeModeNULL
inputMode = .init(rawValue: value as? String ?? mostRecentInputMode) ?? .imeModeNULL
Self.isVerticalTyping = isVerticalTyping
} }
} }