mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Auto merge of #17652 - Tremoneck:debug_key_mover, r=paulrouget
Move Ctrl-F12 keybindings outside of libservo <!-- Please describe your changes on the following line: --> Creates a new WindowEvent called ToggleProfiller, when this Event is queued the profiler is toggled. When Crtl + F12 are pressed the Event is queued. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17647 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17652) <!-- Reviewable:end -->
This commit is contained in:
commit
ee95bda3bf
4 changed files with 13 additions and 22 deletions
|
@ -1290,6 +1290,9 @@ impl WindowMethods for Window {
|
|||
self.event_queue.borrow_mut().push(WindowEvent::Quit);
|
||||
}
|
||||
}
|
||||
(CONTROL, None, Key::F12) => {
|
||||
self.event_queue.borrow_mut().push(WindowEvent::ToggleWebRenderProfiler);
|
||||
}
|
||||
|
||||
_ => {
|
||||
self.platform_handle_key(key, mods);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue