fix wayland input

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-01-10 14:11:49 +08:00
parent 367de991f6
commit 00867276ed
10 changed files with 75 additions and 21 deletions

View File

@@ -394,6 +394,7 @@ impl<T: InvokeUiSession> Session<T> {
name: &str,
keycode: i32,
scancode: i32,
lock_modes: i32,
down_or_up: bool,
) {
if scancode < 0 || keycode < 0 {
@@ -420,7 +421,7 @@ impl<T: InvokeUiSession> Session<T> {
scan_code: scancode as _,
event_type: event_type,
};
keyboard::client::process_event(&event);
keyboard::client::process_event(&event, Some(lock_modes));
}
// flutter only TODO new input