Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: more selective keyboard events for history navigation #1101

Merged
merged 2 commits into from
May 12, 2023

Conversation

Piezoid
Copy link
Contributor

@Piezoid Piezoid commented May 11, 2023

While copying text from a different virtual desktop to fluidd's console, I was annoyed that the window manager global shortcuts (Meta+Up/Down keys) triggered history navigation in the text input, erasing the current input. This is because keyup events are not captured by the windows manager, unlike keydown events.

I also added .exact filters, enabling navigation in multi-line/wrapped inputs using the Ctrl modifier, and selection using the Shift modifier.

Copy link
Member

@pedrolamas pedrolamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good catch!! Thanks for submitting this PR @Piezoid

Copy link
Member

@pedrolamas pedrolamas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add a footer to the main PR comment with a "Signed-off-by" line, following the CONTRIBUTING guidelines.

Thank you!

@pedrolamas pedrolamas added the GH - Bug Something isn't working label May 11, 2023
@pedrolamas pedrolamas added this to the 1.24 milestone May 11, 2023
Allows up/down navigation in multi-line/wrapped inputs using Ctrl modifier, and
selection using the Shift modifier.

Signed-off-by: Maël Kerbiriou <[email protected]>
@Piezoid Piezoid force-pushed the console-history-keybind branch from a1d90d7 to be0f4b2 Compare May 11, 2023 12:43
@pedrolamas pedrolamas requested a review from matmen May 11, 2023 12:46
@pedrolamas pedrolamas merged commit fdddac1 into fluidd-core:develop May 12, 2023
@Piezoid Piezoid deleted the console-history-keybind branch May 12, 2023 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GH - Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants