Skip to content

Add keyboard key-repeat support - #12

Open
waterisbluexd wants to merge 1 commit into
waydeerwm:mainfrom
waterisbluexd:fix/keyboard-repeat
Open

Add keyboard key-repeat support#12
waterisbluexd wants to merge 1 commit into
waydeerwm:mainfrom
waterisbluexd:fix/keyboard-repeat

Conversation

@waterisbluexd

Copy link
Copy Markdown

handle_repeat_info() stores rate/delay from wl_keyboard::RepeatInfo, but nothing ever uses them handle_key() only forwards one event per physical press, so holding backsapce does nothing until you release and press again.

This adds a calloop timer, started on key down using the real reported rate/delay, that refires the key press until release or focus loss cancels it, tested ot locally holding Backspace/letters in a TextInput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant