mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
feat(window): bind hotkey to trigger capture event
This commit is contained in:
parent
7b0beedf3d
commit
ee637dc26e
1 changed files with 3 additions and 0 deletions
|
@ -1230,6 +1230,9 @@ impl WindowMethods for Window {
|
||||||
self.event_queue.borrow_mut().push(WindowEvent::Quit);
|
self.event_queue.borrow_mut().push(WindowEvent::Quit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
(_, Some('3'), _) => if mods ^ KeyModifiers::CONTROL == KeyModifiers::SHIFT {
|
||||||
|
self.event_queue.borrow_mut().push(WindowEvent::CaptureWebRender);
|
||||||
|
}
|
||||||
(KeyModifiers::CONTROL, None, Key::F10) => {
|
(KeyModifiers::CONTROL, None, Key::F10) => {
|
||||||
let event = WindowEvent::ToggleWebRenderDebug(WebRenderDebugOption::RenderTargetDebug);
|
let event = WindowEvent::ToggleWebRenderDebug(WebRenderDebugOption::RenderTargetDebug);
|
||||||
self.event_queue.borrow_mut().push(event);
|
self.event_queue.borrow_mut().push(event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue