diff --git a/README.md b/README.md index a364c7e..513e471 100644 --- a/README.md +++ b/README.md @@ -154,9 +154,9 @@ Categories=Graphics; |-----|--------| | Scroll wheel | Zoom | | Middle click / `0` | Reset view | -| Left / Right | Previous / next post | +| Arrow keys / `h`/`j`/`k`/`l` | Navigate posts | | `,` / `.` | Seek 5s back / forward (video) | -| `Space` | Play / pause (video) | +| `Space` | Play / pause (video, hover to activate) | | Right click | Context menu (bookmark, save, slideshow) | ### Slideshow diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index 50df7cb..f457fc9 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -1609,8 +1609,18 @@ class BooruApp(QMainWindow): self._privacy_overlay.raise_() self._privacy_overlay.show() self.setWindowTitle("booru-viewer") + # Pause preview video + if self._preview._stack.currentIndex() == 1: + self._preview._video_player._player.pause() + # Hide and pause slideshow + if self._fullscreen_window and self._fullscreen_window.isVisible(): + if self._fullscreen_window._stack.currentIndex() == 1: + self._fullscreen_window._video._player.pause() + self._fullscreen_window.hide() else: self._privacy_overlay.hide() + if self._fullscreen_window: + self._fullscreen_window.show() def resizeEvent(self, event) -> None: super().resizeEvent(event)