mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
feat: modifier key
This commit is contained in:
1 parent
28c11801f3
commit
26e77ba2c3
4 files changed
+5
-12
No files matched your search
@@ -1728,11 +1728,7 @@ impl Connection {
|
||||
Some(message::Union::KeyEvent(..)) => {}
|
||||
#[cfg(any(target_os = "android"))]
|
||||
Some(message::Union::KeyEvent(mut me)) => {
|
||||
let is_press = if cfg!(target_os = "linux") {
|
||||
(me.press || me.down) && !crate::is_modifier(&me)
|
||||
} else {
|
||||
me.press
|
||||
};
|
||||
let is_press = (me.press || me.down) && !crate::is_modifier(&me);
|
||||
|
||||
let key = match me.mode.enum_value() {
|
||||
Ok(KeyboardMode::Map) => {
|
||||
@@ -1748,7 +1744,6 @@ impl Connection {
|
||||
_ => None,
|
||||
}
|
||||
.filter(crate::keyboard::is_modifier);
|
||||
log::debug!("key:{:?}", key);
|
||||
|
||||
if let Some(key) = key {
|
||||
if is_press {
|
||||
|
||||
Reference in new issue
Block a user