Skip to content

servoshell: Cleanup headed_window from the old code#40132

Merged
mrobinson merged 1 commit intoservo:mainfrom
rodio:cleanup_headed_window
Oct 24, 2025
Merged

servoshell: Cleanup headed_window from the old code#40132
mrobinson merged 1 commit intoservo:mainfrom
rodio:cleanup_headed_window

Conversation

@rodio
Copy link
Copy Markdown
Contributor

@rodio rodio commented Oct 24, 2025

headed_window.rs had some old code that apparently does not make sense with the newer versions of winit or other parts of Servo and also introduced #40073. For example, some comments referred to winit's ReceivedChar event or EmbedderMsg::Keyboard which do not exist anymore.

These changes remove the old code and simplify handling of keyboard events.

Testing: Servoshell was tested manually except for WebXR features because it looks like I'do not have proper hardware to test WebXR.
Fixes: #40073

@rodio rodio requested a review from atbrakhi as a code owner October 24, 2025 11:10
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 24, 2025
Copy link
Copy Markdown
Member

@mrobinson mrobinson left a comment

Choose a reason for hiding this comment

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

Yes, it seems that WinitKey::Character now contains the full string of inserted text.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Oct 24, 2025
@yezhizhen yezhizhen added T-webdriver Do a try run of the WebDriver conformance tests and removed T-webdriver Do a try run of the WebDriver conformance tests labels Oct 24, 2025
@yezhizhen
Copy link
Copy Markdown
Member

Cancelling as it's headed window.

@mrobinson mrobinson added this pull request to the merge queue Oct 24, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 24, 2025
Merged via the queue into servo:main with commit fe21495 Oct 24, 2025
34 of 36 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 Oct 24, 2025
@rodio rodio deleted the cleanup_headed_window branch October 25, 2025 15:33
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.

Duplication of Cyrillic letters when typing in the search bar.

4 participants