From 505b000a02cb0206924a98a838286e1598df437c Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 12 Sep 2022 18:05:04 +0800 Subject: [PATCH] IMKHelper // +allowedAlphanumericalTISInputSources. --- Source/Modules/IMEModules/IMKHelper.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Modules/IMEModules/IMKHelper.swift b/Source/Modules/IMEModules/IMKHelper.swift index 62873e88..2972be5d 100644 --- a/Source/Modules/IMEModules/IMKHelper.swift +++ b/Source/Modules/IMEModules/IMKHelper.swift @@ -41,6 +41,10 @@ enum IMKHelper { "org.unknown.keylayout.vChewingMiTAC", ] + static var allowedAlphanumericalTISInputSources: [TISInputSource] { + arrWhitelistedKeyLayoutsASCII.compactMap { TISInputSource.generate(from: $0) } + } + static var allowedBasicLayoutsAsTISInputSources: [TISInputSource?] { // 為了保證清單順序,先弄兩個容器。 var containerA: [TISInputSource?] = []