mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
main: fix F11
fullscreen
This commit is contained in:
parent
d9b4106970
commit
54e009a157
1 changed files with 4 additions and 2 deletions
|
@ -1247,8 +1247,10 @@ impl eframe::App for App {
|
|||
let wants_input = ctx.wants_keyboard_input();
|
||||
|
||||
if key.is_f11() {
|
||||
let info = frame.info();
|
||||
frame.set_fullscreen(!info.window_info.fullscreen);
|
||||
let info = ctx.input(|i| i.viewport());
|
||||
if info.maximized == Some(true) {
|
||||
ctx.send_viewport_cmd(egui::ViewportCommand::Fullscreen(true));
|
||||
}
|
||||
// Change Tabs LEFT
|
||||
} else if key.is_z() && !wants_input {
|
||||
match self.tab {
|
||||
|
|
Loading…
Reference in a new issue