Compatible with legacy mode in remote

This commit is contained in:
Asura
2022-07-18 23:45:54 -07:00
parent a77d64d181
commit 19ebbb145a
2 changed files with 8 additions and 8 deletions

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