From 92c1824720b7de671718266bb8c311eb59321657 Mon Sep 17 00:00:00 2001 From: pax Date: Wed, 8 Apr 2026 16:21:57 -0500 Subject: [PATCH] Remove O keybind for Open in Default App MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pax requested the keyboard shortcut be removed — too easy to fat-finger when navigating with the keyboard, and "Open in Default App" still ships an external process that may steal focus from the app. The right-click menu's Open in Default App action stays, both on browse thumbnails and in the preview pane right-click — only the bare-key shortcut goes away. The deleted block was the only Key_O handler in BooruApp.keyPressEvent, so no other behavior changes. Verified manually: - press O on a selected thumbnail → nothing happens - right-click thumbnail → "Open in Default App" still present and opens - right-click preview pane → same --- booru_viewer/gui/main_window.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/booru_viewer/gui/main_window.py b/booru_viewer/gui/main_window.py index 9c1e14c..4ed8104 100644 --- a/booru_viewer/gui/main_window.py +++ b/booru_viewer/gui/main_window.py @@ -2986,11 +2986,6 @@ class BooruApp(QMainWindow): elif key == Qt.Key.Key_I: self._toggle_info() return - elif key == Qt.Key.Key_O and self._posts: - idx = self._grid.selected_index - if 0 <= idx < len(self._posts): - self._open_in_default(self._posts[idx]) - return elif key == Qt.Key.Key_Space: if self._preview._stack.currentIndex() == 1 and self._preview.underMouse(): self._preview._video_player._toggle_play()