Skip to content

Commit

Permalink
feat(window): bind hotkey to trigger capture event
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Mar 16, 2018
1 parent 7b0beed commit ee637dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/servo/glutin_app/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee637dc

Please sign in to comment.