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:
parent
588103c6dc
commit
12e15b5a37
4 changed files with 35 additions and 38 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue