From 1205ed7ed42f98ff1f814c218a1f0c2677e0b499 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 3 Jul 2023 21:29:08 +0800 Subject: [PATCH] SessionCtl // Don't handle isSingleCommandBasedLetterHotKey. --- Source/Modules/SessionCtl_HandleEvent.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Modules/SessionCtl_HandleEvent.swift b/Source/Modules/SessionCtl_HandleEvent.swift index a1e0a886..f1595272 100644 --- a/Source/Modules/SessionCtl_HandleEvent.swift +++ b/Source/Modules/SessionCtl_HandleEvent.swift @@ -67,6 +67,9 @@ public extension SessionCtl { private func handleKeyDown(event: NSEvent) -> Bool { // MARK: 前置處理 + // 先放過一些以 .command 觸發的熱鍵(包括剪貼簿熱鍵)。 + if state.type == .ofEmpty, event.isSingleCommandBasedLetterHotKey { return false } + // 如果是 deactivated 狀態的話,強制糾正其為 empty()。 if state.type == .ofDeactivated { state = IMEState.ofEmpty()