SessionCtl // Stop blocking reserved key inputs right after reboot.

This commit is contained in:
ShikiSuen 2022-12-09 12:07:09 +08:00
parent c134ba0356
commit bd11f209f9
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,7 @@ extension SessionCtl {
/// flags使 InputHandler
/// flags
/// event.type == .flagsChanged return false
/// NSInternalInconsistencyException
/// event.characters? NSInternalInconsistencyException
if event.type == .flagsChanged { return false }
///
@ -105,6 +105,7 @@ extension SessionCtl {
///
if !LMMgr.currentLM.isCoreLoaded {
if (event as InputSignalProtocol).isReservedKey { return false }
var newState: IMEStateProtocol = IMEState.ofEmpty()
newState.tooltip = NSLocalizedString("Factory dictionary not loaded yet.", comment: "") + "  "
newState.tooltipDuration = 1.85