(ctl)PrefWindow // Enforcing Sent Action to CNSLM.
This commit is contained in:
parent
0b7cfffb96
commit
9af68d4e1e
|
@ -168,6 +168,12 @@ extension RangeReplaceableCollection where Element: Hashable {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 這裡有必要加上這段處理,用來確保藉由偏好設定介面動過的 CNS 開關能夠立刻生效。
|
||||||
|
// 所有涉及到語言模型開關的內容均需要這樣處理。
|
||||||
|
@IBAction func toggleCNSSupport(_ sender: Any) {
|
||||||
|
mgrLangModel.setCNSEnabled(Preferences.cns11643Enabled)
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func toggleTrad2KangXiAction(_ sender: Any) {
|
@IBAction func toggleTrad2KangXiAction(_ sender: Any) {
|
||||||
if chkTrad2KangXi.state == .on && chkTrad2JISShinjitai.state == .on {
|
if chkTrad2KangXi.state == .on && chkTrad2JISShinjitai.state == .on {
|
||||||
Preferences.toggleShiftJISShinjitaiOutputEnabled()
|
Preferences.toggleShiftJISShinjitaiOutputEnabled()
|
||||||
|
|
|
@ -232,7 +232,7 @@
|
||||||
<rect key="frame" x="3" y="3" width="445" height="134"/>
|
<rect key="frame" x="3" y="3" width="445" height="134"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Yaj-QY-7xV">
|
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Yaj-QY-7xV" userLabel="chkCNSSupport">
|
||||||
<rect key="frame" x="19" y="104.5" width="406" height="17"/>
|
<rect key="frame" x="19" y="104.5" width="406" height="17"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="16" id="KdE-Vd-Y50"/>
|
<constraint firstAttribute="height" constant="16" id="KdE-Vd-Y50"/>
|
||||||
|
@ -242,6 +242,7 @@
|
||||||
<font key="font" metaFont="cellTitle"/>
|
<font key="font" metaFont="cellTitle"/>
|
||||||
</buttonCell>
|
</buttonCell>
|
||||||
<connections>
|
<connections>
|
||||||
|
<action selector="toggleCNSSupport:" target="-2" id="mcY-ma-N0c"/>
|
||||||
<binding destination="32" name="value" keyPath="values.CNS11643Enabled" id="Pbx-Gt-upm"/>
|
<binding destination="32" name="value" keyPath="values.CNS11643Enabled" id="Pbx-Gt-upm"/>
|
||||||
</connections>
|
</connections>
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in New Issue