SessionCtl // Switch to .ofEmpty() state on toggling CapsLock.

This commit is contained in:
ShikiSuen 2024-03-21 19:38:05 +08:00
parent 2d23deb83a
commit e8961ff33f
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ public extension SessionCtl {
if PrefMgr.shared.shiftEisuToggleOffTogetherWithCapsLock, !isCapsLockTurnedOn, self?.isASCIIMode ?? false {
self?.isASCIIMode.toggle()
}
self?.resetInputHandler()
guard PrefMgr.shared.showNotificationsWhenTogglingCapsLock else { return }
guard !PrefMgr.shared.bypassNonAppleCapsLockHandling else { return }
let status = NSLocalizedString("NotificationSwitchRevolver", comment: "")