fix: linux, weak network, repeated keys (#10211)

Use `press` as the `click` flag on Linux to avoid repeated keys, like
the Legacy mode.

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2024-12-06 20:01:11 +08:00
committed by GitHub
parent 588103c6dc
commit 12e15b5a37
4 changed files with 35 additions and 38 deletions

View File

@@ -284,7 +284,9 @@ enum ControlKey {
}
message KeyEvent {
// `down` indicates the key's state(down or up).
bool down = 1;
// `press` indicates a click event(down and up).
bool press = 2;
oneof union {
ControlKey control_key = 3;