SessionCtl // Allow JIS_EiSu key to toggle Alphanumerical mode.
This commit is contained in:
parent
bb2533a2aa
commit
72560e82e2
|
@ -93,6 +93,14 @@ extension SessionCtl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 用 JIS 鍵盤的英數切換鍵來切換中英文模式。
|
||||||
|
if event.type == .keyDown {
|
||||||
|
if event.isJISAlphanumericalKey {
|
||||||
|
toggleAlphanumericalMode()
|
||||||
|
return true // Adobe Photoshop 相容:對 JIS 英數切換鍵傳入事件一律立刻返回 true。
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: 針對客體的具體處理
|
// MARK: 針對客體的具體處理
|
||||||
|
|
||||||
// 不再讓威注音處理由 Shift 切換到的英文模式的按鍵輸入。
|
// 不再讓威注音處理由 Shift 切換到的英文模式的按鍵輸入。
|
||||||
|
|
Loading…
Reference in New Issue