mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 15:33:14 -04:00
Minor API improvements
This commit is contained in:
@@ -68,7 +68,16 @@ fn main() {
|
||||
return glutin::ControlFlow::Break;
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
glutin::WindowEvent::KeyboardInput { input, .. } => {
|
||||
if input.virtual_keycode == Some(glutin::VirtualKeyCode::Q)
|
||||
&& input.modifiers.logo
|
||||
{
|
||||
return glutin::ControlFlow::Break;
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
// dbg!(event);
|
||||
}
|
||||
},
|
||||
_ => (),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user