Skip to content

New feature to distinguish whether the Windows, Control, Alt, and Shift keys are the left or right keys#1985

Open
jilliss wants to merge 2 commits into
Smithay:masterfrom
jilliss:master
Open

New feature to distinguish whether the Windows, Control, Alt, and Shift keys are the left or right keys#1985
jilliss wants to merge 2 commits into
Smithay:masterfrom
jilliss:master

Conversation

@jilliss

@jilliss jilliss commented Apr 5, 2026

Copy link
Copy Markdown

For use by downstream NIRI

Description

I noticed that niri was developed based on this project.
Furthermore, niri has an outstanding issue: it does not support advanced keyboard modifiers
such as Super_L. This commit adds support for them.

Specifically, it adds a keycode parameter to keyboard input to identify the specific key
and introduces some boolean values to track key presses for use by downstream components.

see niri issues Do not support Shift_R key.

Checklist

…nd `Shift` keys are the left or right keys

For use by downstream NIRI
@jilliss

jilliss commented Apr 6, 2026

Copy link
Copy Markdown
Author

@PolyMeilex @YaLTeR could you review this?

@PolyMeilex PolyMeilex left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi!
Could you explain when and how are those new fields cleared? At a first glance at the diff I only see them being set to true

Comment thread src/input/keyboard/modifiers_state.rs Outdated
Comment thread src/input/keyboard/modifiers_state.rs Outdated
@jilliss jilliss requested a review from PolyMeilex April 11, 2026 06:16
@jilliss

jilliss commented Apr 15, 2026

Copy link
Copy Markdown
Author

Could you please review my code again? @PolyMeilex @Drakulix

@jilliss

jilliss commented Apr 22, 2026

Copy link
Copy Markdown
Author

Updated the code based on your previous feedback. Ready for another look when you're available! Thanks for your time. @PolyMeilex

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.

2 participants