From d6588d656aeb76097b1a9d9ae667de14d188647a Mon Sep 17 00:00:00 2001 From: mariinkys Date: Sat, 3 Oct 2026 21:05:12 +0200 Subject: [PATCH] wayland: Handle `KeyState::Repeated` key events --- src/platform_impl/linux/wayland/seat/keyboard/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/platform_impl/linux/wayland/seat/keyboard/mod.rs b/src/platform_impl/linux/wayland/seat/keyboard/mod.rs index f84c386735..6012f73fd9 100644 --- a/src/platform_impl/linux/wayland/seat/keyboard/mod.rs +++ b/src/platform_impl/linux/wayland/seat/keyboard/mod.rs @@ -265,6 +265,16 @@ impl Dispatch for WinitState { RepeatInfo::Repeat { gap, delay } }; }, + WlKeyboardEvent::Key { key, state: WEnum::Value(WlKeyState::Repeated), .. } => { + key_input( + keyboard_state, + &mut state.events_sink, + data, + key + 8, + ElementState::Pressed, + true, + ); + }, _ => unreachable!(), } }