From 41339a1c61d5c78d1bde2461be69c2ec72b370f8 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 8 Mar 2023 15:35:24 +0800 Subject: [PATCH] SessionCtl // Change the condition of areWeNerfing(). --- Source/Modules/SessionCtl_HandleEvent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/SessionCtl_HandleEvent.swift b/Source/Modules/SessionCtl_HandleEvent.swift index e1436850..c88f56e5 100644 --- a/Source/Modules/SessionCtl_HandleEvent.swift +++ b/Source/Modules/SessionCtl_HandleEvent.swift @@ -140,7 +140,7 @@ public extension SessionCtl { } // 準備修飾鍵,用來判定要新增的詞彙是否需要賦以非常低的權重。 - Self.areWeNerfing = eventToDeal.modifierFlags.contains([.shift, .command]) + Self.areWeNerfing = eventToDeal.modifierFlags == [.shift, .command] /// 直接交給 commonEventHandler 來處理。 let result = inputHandler.handleEvent(eventToDeal)