Disable .languageIdentifier to expose bug FB10978412.
This commit is contained in:
parent
36d697d608
commit
17c4525bea
|
@ -190,20 +190,6 @@ private class vwrCandidateUniversal: NSView {
|
||||||
} else {
|
} else {
|
||||||
NSColor.controlBackgroundColor.setFill()
|
NSColor.controlBackgroundColor.setFill()
|
||||||
}
|
}
|
||||||
switch IME.currentInputMode {
|
|
||||||
case InputMode.imeModeCHS:
|
|
||||||
if #available(macOS 12.0, *) {
|
|
||||||
activeCandidateAttr[.languageIdentifier] = "zh-Hans" as AnyObject
|
|
||||||
}
|
|
||||||
case InputMode.imeModeCHT:
|
|
||||||
if #available(macOS 12.0, *) {
|
|
||||||
activeCandidateAttr[.languageIdentifier] =
|
|
||||||
(mgrPrefs.shiftJISShinjitaiOutputEnabled || mgrPrefs.chineseConversionEnabled)
|
|
||||||
? "ja" as AnyObject : "zh-Hant" as AnyObject
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
break
|
|
||||||
}
|
|
||||||
NSBezierPath.fill(rctCandidateArea)
|
NSBezierPath.fill(rctCandidateArea)
|
||||||
(keyLabels[index] as NSString).draw(
|
(keyLabels[index] as NSString).draw(
|
||||||
in: rctLabel, withAttributes: activeCandidateIndexAttr
|
in: rctLabel, withAttributes: activeCandidateIndexAttr
|
||||||
|
@ -260,20 +246,6 @@ private class vwrCandidateUniversal: NSView {
|
||||||
} else {
|
} else {
|
||||||
NSColor.controlBackgroundColor.setFill()
|
NSColor.controlBackgroundColor.setFill()
|
||||||
}
|
}
|
||||||
switch IME.currentInputMode {
|
|
||||||
case InputMode.imeModeCHS:
|
|
||||||
if #available(macOS 12.0, *) {
|
|
||||||
activeCandidateAttr[.languageIdentifier] = "zh-Hans" as AnyObject
|
|
||||||
}
|
|
||||||
case InputMode.imeModeCHT:
|
|
||||||
if #available(macOS 12.0, *) {
|
|
||||||
activeCandidateAttr[.languageIdentifier] =
|
|
||||||
(mgrPrefs.shiftJISShinjitaiOutputEnabled || mgrPrefs.chineseConversionEnabled)
|
|
||||||
? "ja" as AnyObject : "zh-Hant" as AnyObject
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
break
|
|
||||||
}
|
|
||||||
NSBezierPath.fill(rctCandidateArea)
|
NSBezierPath.fill(rctCandidateArea)
|
||||||
(keyLabels[index] as NSString).draw(
|
(keyLabels[index] as NSString).draw(
|
||||||
in: rctLabel, withAttributes: activeCandidateIndexAttr
|
in: rctLabel, withAttributes: activeCandidateIndexAttr
|
||||||
|
|
Loading…
Reference in New Issue