Compatible with legacy mode in remote

This commit is contained in:
Asura committed 2022-07-18 23:45:54 -07:00
1 parent a77d64d181
commit 19ebbb145a
2 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -420,11 +420,11 @@ impl Connection {
}
MessageInput::Key((mut msg, press)) => {
// todo: press and down have similar meanings.
if press && msg.mode == 3 {
if press && msg.mode == 0 {
msg.down = true;
}
handle_key(&msg);
if press && msg.mode == 3 {
if press && msg.mode == 0 {
msg.down = false;
handle_key(&msg);
}