mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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);
|
||||
}
|
||||
}
|
||||
(_, Some('3'), _) => if mods ^ KeyModifiers::CONTROL == KeyModifiers::SHIFT {
|
||||
self.event_queue.borrow_mut().push(WindowEvent::CaptureWebRender);
|
||||
}
|
||||
(KeyModifiers::CONTROL, None, Key::F10) => {
|
||||
let event = WindowEvent::ToggleWebRenderDebug(WebRenderDebugOption::RenderTargetDebug);
|
||||
self.event_queue.borrow_mut().push(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue