Skip to content

servoshell: Update deprecated keycodes - #47330

Merged
mrobinson merged 1 commit into
servo:mainfrom
eachra-bawn:meta-super
Aug 18, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
eachra-bawn:meta-super

Conversation

@eachra-bawn

@eachra-bawn eachra-bawn commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

This updates servoshell's key event interpretation so that the macOS Command key and the Windows Logo key correspond to 'Meta'. Previously, this was causing servoshell to interpret these as 'Super', which is unlike other browsers' behaviour such as Chrome, which interpret these keys as 'Meta'.

Here is the documentation from winit regarding the 'Super' key:
https://docs.rs/winit/latest/winit/keyboard/enum.NamedKey.html#variant.Super

Testing: servoshell does not have testing at this layer.
Fixes: #41306

Fixes: servo#41306

Signed-off-by: eachra-bawn <mulhalloisin@gmail.com>
@eachra-bawn
eachra-bawn requested a review from atbrakhi as a code owner August 18, 2026 11:56
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 18, 2026
@mrobinson

Copy link
Copy Markdown
Member

@eachra-bawn Do you think you can write a bit of text into the PR description describing the difference between these two values and why this change is correct? It will really help both reviewers and people looking at this change in the future.

@eachra-bawn

Copy link
Copy Markdown
Contributor Author

Sorry about that. Fixed now.

@mrobinson
mrobinson enabled auto-merge August 18, 2026 12:15
@mrobinson

Copy link
Copy Markdown
Member

Thanks!

@TimvdLippe TimvdLippe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving on Martins behalf

@mrobinson
mrobinson added this pull request to the merge queue Aug 18, 2026
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 18, 2026
Merged via the queue into servo:main with commit 748bf81 Aug 18, 2026
38 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 18, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
This updates servoshell's key event interpretation so that the macOS
Command key and the Windows Logo key correspond to 'Meta'. Previously,
this was causing servoshell to interpret these as 'Super', which is
unlike other browsers' behaviour such as Chrome, which interpret these
keys as 'Meta'.

Here is the documentation from winit regarding the 'Super' key:

https://docs.rs/winit/latest/winit/keyboard/enum.NamedKey.html#variant.Super

Testing: servoshell does not have testing at this layer.
Fixes: servo#41306

Signed-off-by: eachra-bawn <mulhalloisin@gmail.com>
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.

KeyboardEvent's .key uses Super for the Windows Key (and maybe MacOS Command Key), but other browsers use Meta

4 participants