Repository navigation
make it possible to disable default keybindings - #8121
Conversation
|
This feels like an inefficient way to go about this to me. Have you tried adding key listeners to browser.html and calling |
Aren't DOM events not even created at this point? Should we propagate the events and later on check if Also - is zooming with ctrl-scroll really a thing we need? |
|
We prevent backspace from navigating the page when a text input is focused on a page; all key events are first sent to the focused script task, processed, and if they're not prevented they're returned to the compositor for further processing. I would be ok with removing zooming via the mousewheel if it makes your life easier. |
I see. What about escape? |
|
If we can I'll look at how to do that. |
|
That would require updating http://mxr.mozilla.org/servo/source/ports/glutin/window.rs#173 to match the others, and ensuring that |
0122f78 to
e60f02c
Compare
|
@bors-servo: r+ |
|
📌 Commit e60f02c has been approved by |
make it possible to disable default keybindings For browser.html, we want to let the top level webpage handle these keybindings. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8121) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
Synthesized pinch zoom was removed in servo#8121 so that this combination of mouse wheel and key press can be handled by the page. I mistakenly re-implemented it servo#8215. In order to preserve synthesized pinch zoom, which is very useful for testing on desktop computers, have it work similarly to page zoom except with the ALT key pressed.
Synthesized pinch zoom was removed in servo#8121 so that this combination of mouse wheel and key press can be handled by the page. I mistakenly re-implemented it servo#8215. In order to preserve synthesized pinch zoom, which is very useful for testing on desktop computers, have it work similarly to page zoom except with the ALT key pressed.
Make executing synthesized pinch zoom more similar to zoom Synthesized pinch zoom was removed in #8121 so that this combination of mouse wheel and key press can be handled by the page. I mistakenly re-implemented it #8215. In order to preserve synthesized pinch zoom, which is very useful for testing on desktop computers, have it work similarly to page zoom except with the ALT key pressed. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8223) <!-- Reviewable:end -->
Synthesized pinch zoom was removed in servo#8121 so that this combination of mouse wheel and key press can be handled by the page. I mistakenly re-implemented it servo#8215. In order to preserve synthesized pinch zoom, which is very useful for testing on desktop computers, have it work similarly to page zoom except with the ALT key pressed.
Make executing synthesized pinch zoom more similar to zoom Synthesized pinch zoom was removed in #8121 so that this combination of mouse wheel and key press can be handled by the page. I mistakenly re-implemented it #8215. In order to preserve synthesized pinch zoom, which is very useful for testing on desktop computers, have it work similarly to page zoom except with the ALT key pressed. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8223) <!-- Reviewable:end -->
Make executing synthesized pinch zoom more similar to zoom Synthesized pinch zoom was removed in #8121 so that this combination of mouse wheel and key press can be handled by the page. I mistakenly re-implemented it #8215. In order to preserve synthesized pinch zoom, which is very useful for testing on desktop computers, have it work similarly to page zoom except with the ALT key pressed. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8223) <!-- Reviewable:end -->
For browser.html, we want to let the top level webpage handle these keybindings.