mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-03 12:51:29 +03:00
fix key event
This commit is contained in:
@@ -714,14 +714,14 @@ class FFI {
|
||||
json.encode(modify({'type': type, 'buttons': button.value})));
|
||||
}
|
||||
|
||||
static void inputKey(String name, [bool? down]) {
|
||||
static void inputKey(String name, {bool? down, bool? press}) {
|
||||
if (!ffiModel.keyboard()) return;
|
||||
setByName(
|
||||
'input_key',
|
||||
json.encode(modify({
|
||||
'name': name,
|
||||
'down': (down ?? false).toString(),
|
||||
'press': 'true'
|
||||
'press': (press ?? true).toString()
|
||||
})));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user