From 30bfa59e7d861fb3a361b562d4f036bda7f7536d Mon Sep 17 00:00:00 2001 From: Asura Date: Tue, 30 Aug 2022 15:53:44 +0800 Subject: [PATCH] Without Clear Key on Mac OS --- src/ui/remote.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/remote.rs b/src/ui/remote.rs index 659f3f05a..34d4251fa 100644 --- a/src/ui/remote.rs +++ b/src/ui/remote.rs @@ -1061,6 +1061,10 @@ impl Handler { let key = self.convert_numpad_keys(key); rdev::win_keycode_from_key(key).unwrap_or_default().into() } else { + // Without Clear Key on Mac OS + if key == rdev::Key::Clear{ + return; + } rdev::macos_keycode_from_key(key).unwrap_or_default().into() };