Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upmake 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 |
|
@bors-servo: r+ |
|
|
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 -->
|
|
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 -->
paulrouget commentedOct 21, 2015
For browser.html, we want to let the top level webpage handle these keybindings.