ctlIME // Note: alphanumerical mode toggle only works >= macOS 10.15.
This commit is contained in:
parent
e3f5d1ec93
commit
c02e52e9d2
|
@ -187,7 +187,8 @@ class ctlInputMethod: IMKInputController {
|
|||
@objc(handleEvent:client:) override func handle(_ event: NSEvent!, client sender: Any!) -> Bool {
|
||||
_ = sender // 防止格式整理工具毀掉與此對應的參數。
|
||||
|
||||
// 用 Shift 開關半形英數模式。
|
||||
// 用 Shift 開關半形英數模式,僅對 macOS 10.15 及之後的 macOS 有效。
|
||||
if #available(macOS 10.15, *) {
|
||||
if ShiftKeyUpChecker.check(event) {
|
||||
if !rencentKeyHandledByKeyHandler {
|
||||
NotifierController.notify(
|
||||
|
@ -202,6 +203,7 @@ class ctlInputMethod: IMKInputController {
|
|||
rencentKeyHandledByKeyHandler = false
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
/// 這裡仍舊需要判斷 flags。之前使輸入法狀態卡住無法敲漢字的問題已在 KeyHandler 內修復。
|
||||
/// 這裡不判斷 flags 的話,用方向鍵前後定位光標之後,再次試圖觸發組字區時、反而會在首次按鍵時失敗。
|
||||
|
|
Loading…
Reference in New Issue