F11 toggles fullscreen/windowed in slideshow mode

This commit is contained in:
pax 2026-04-04 20:01:26 -05:00
parent 97ad56c12f
commit 339c1b3c02

View File

@ -83,6 +83,12 @@ class FullscreenPreview(QMainWindow):
elif key in (Qt.Key.Key_Down, Qt.Key.Key_J): elif key in (Qt.Key.Key_Down, Qt.Key.Key_J):
self.navigate.emit(self._grid_cols) self.navigate.emit(self._grid_cols)
return True return True
elif key == Qt.Key.Key_F11:
if self.isFullScreen():
self.showNormal()
else:
self.showFullScreen()
return True
elif key == Qt.Key.Key_Space and self._stack.currentIndex() == 1: elif key == Qt.Key.Key_Space and self._stack.currentIndex() == 1:
self._video._toggle_play() self._video._toggle_play()
return True return True