Without Clear Key on Mac OS

This commit is contained in:
Asura 2022-08-30 15:53:44 +08:00
parent a0cb39af9c
commit 30bfa59e7d

View File

@ -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()
};