-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Webdriver: Keyboard Action use webview::notify_input_event
instead of directly sent to constellation
#37908
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
Conversation
Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
497aab1
to
6a8472e
Compare
Ideally, we should use this function, since it already handled many pre-processing steps servo/ports/servoshell/desktop/headed_window.rs Lines 210 to 257 in ee8bd14
However, this function is only available on |
Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
Do you mind linking to the code that is capitalizing letters when shift is pressed just so I understand this issue a bit better? |
Sorry, I think I misunderstood something, it should be already capitalized before. But I still think the behavior of both user input in servoshell and webdriver should be similar (right?). For example, we have this handling of key binding servo/ports/servoshell/desktop/headed_window.rs Lines 284 to 402 in ee8bd14
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR on its own makes a lot of sense to me.
Regarding the modifier keys, I think the modifier-related mapping should be done inside Servo. The embedders may or may not handle modifiers, but Servo should not rely on embedders for handling the modifiers.
I agree with this. In general, I think we should move more key handling into the script itself. This includes keys for things like scrolling, etc. |
Previously, we KeyboardAction will be forwarded to constellation by the embedder. Now we use
webview.notify_input_event
, which will sendWebDriverCommandMsg::ForwardInputEvent
for KeyboardActionFixes: part of #37370