Shared // Make InputMode identifiable.
This commit is contained in:
parent
4d03773b1a
commit
a6c50ac937
|
@ -291,7 +291,8 @@ public enum Shared {
|
||||||
public static let arrSupportedLocales: [String] = ["en", "zh-Hant", "zh-Hans", "ja"]
|
public static let arrSupportedLocales: [String] = ["en", "zh-Hant", "zh-Hans", "ja"]
|
||||||
|
|
||||||
// The type of input modes.
|
// The type of input modes.
|
||||||
public enum InputMode: String, CaseIterable {
|
public enum InputMode: String, CaseIterable, Identifiable {
|
||||||
|
public var id: ObjectIdentifier { .init(rawValue as AnyObject) }
|
||||||
case imeModeCHS = "org.atelierInmu.inputmethod.vChewing.IMECHS"
|
case imeModeCHS = "org.atelierInmu.inputmethod.vChewing.IMECHS"
|
||||||
case imeModeCHT = "org.atelierInmu.inputmethod.vChewing.IMECHT"
|
case imeModeCHT = "org.atelierInmu.inputmethod.vChewing.IMECHT"
|
||||||
case imeModeNULL = ""
|
case imeModeNULL = ""
|
||||||
|
|
Loading…
Reference in New Issue