Merge pull request #5040 from fufesou/fix/macos_convertion_key

try fix macos convertion key
This commit is contained in:
RustDesk 2023-07-18 11:08:02 +08:00 committed by GitHub
commit f0ded8498a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -4894,7 +4894,7 @@ dependencies = [
[[package]] [[package]]
name = "rdev" name = "rdev"
version = "0.5.0-2" version = "0.5.0-2"
source = "git+https://github.com/fufesou/rdev#ab48d5798c86303b9398727684509b1b43ecfdab" source = "git+https://github.com/fufesou/rdev#66c55439b0daf8836b188ddff47a497711cf164e"
dependencies = [ dependencies = [
"cocoa", "cocoa",
"core-foundation", "core-foundation",

View File

@ -708,7 +708,7 @@ pub fn legacy_keyboard_mode(event: &Event, mut key_event: KeyEvent) -> Vec<KeyEv
Key::Final => Some(ControlKey::Final), Key::Final => Some(ControlKey::Final),
Key::Hanja => Some(ControlKey::Hanja), Key::Hanja => Some(ControlKey::Hanja),
Key::Hanji => Some(ControlKey::Hanja), Key::Hanji => Some(ControlKey::Hanja),
Key::Convert => Some(ControlKey::Convert), Key::Lang2 => Some(ControlKey::Convert),
Key::Print => Some(ControlKey::Print), Key::Print => Some(ControlKey::Print),
Key::Select => Some(ControlKey::Select), Key::Select => Some(ControlKey::Select),
Key::Execute => Some(ControlKey::Execute), Key::Execute => Some(ControlKey::Execute),