fix ci
This commit is contained in:
parent
0e49cd0f01
commit
4d076988cd
@ -834,6 +834,7 @@ pub fn translate_key_code(peer: &str, event: &Event, key_event: KeyEvent) -> Opt
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
||||||
fn is_altgr(event: &Event) -> bool {
|
fn is_altgr(event: &Event) -> bool {
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
if event.platform_code == 0xFE03 {
|
if event.platform_code == 0xFE03 {
|
||||||
@ -872,11 +873,11 @@ pub fn translate_keyboard_mode(peer: &str, event: &Event, key_event: KeyEvent) -
|
|||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
// ignore right option key
|
// ignore right option key
|
||||||
if event.code as u32 == rdev::kVK_RightOption {
|
if event.platform_code as u32 == rdev::kVK_RightOption {
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(any(target_os = "linux", target_os = "windows"))]
|
||||||
if is_altgr(event) {
|
if is_altgr(event) {
|
||||||
return events;
|
return events;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user