feat: F11 fullscreen toggle (Esc still exits)
This commit is contained in:
1 parent
ee456773d4
commit
2ae32e351d
5 files changed
+6
-5
No files matched your search
@@ -68,9 +68,10 @@ class AppShortcuts extends StatelessWidget {
|
||||
case LogicalKeyboardKey.arrowRight:
|
||||
ImageManager.instance.nextImage();
|
||||
return KeyEventResult.handled;
|
||||
case LogicalKeyboardKey.f11:
|
||||
case LogicalKeyboardKey.escape:
|
||||
windowManager.isFullScreen().then((isFullscreen) {
|
||||
if (isFullscreen) windowManager.setFullScreen(false);
|
||||
windowManager.setFullScreen(event.logicalKey == LogicalKeyboardKey.f11 ? !isFullscreen : false);
|
||||
});
|
||||
return KeyEventResult.handled;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user