diff --git a/modules/screenshot_hotkey.py b/modules/screenshot_hotkey.py index ffbc3aa..a27a815 100644 --- a/modules/screenshot_hotkey.py +++ b/modules/screenshot_hotkey.py @@ -46,10 +46,10 @@ class ScreenshotHotkeyManager(QObject): # Default hotkeys DEFAULT_HOTKEYS = { - 'screenshot_full': 'f12', # Full screen - 'screenshot_region': 'shift+f12', # Region selection - 'screenshot_loot': 'ctrl+f12', # Loot window area - 'screenshot_hud': 'alt+f12', # HUD area + 'screenshot_full': '', # Full screen + 'screenshot_region': '+', # Region selection + 'screenshot_loot': '+', # Loot window area + 'screenshot_hud': '+', # HUD area } def __init__(self, screenshot_manager: Optional[AutoScreenshot] = None, @@ -360,7 +360,9 @@ class ScreenshotHotkeyManager(QObject): for action, combo in self.hotkeys.items(): desc = descriptions.get(action, action) - lines.append(f" {combo.upper():<15} - {desc}") + # Remove angle brackets for display + display_combo = combo.replace('<', '').replace('>', '') + lines.append(f" {display_combo.upper():<15} - {desc}") return "\n".join(lines) diff --git a/ui/main_window.py b/ui/main_window.py index 96f1291..f15ce9f 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -412,14 +412,17 @@ class MainWindow(QMainWindow): self._screenshot_capture = ScreenshotCapture(self.db) # Screenshot hotkey manager (global hotkeys for manual capture) + # Note: Initialized after UI setup because it uses log_output self._screenshot_hotkeys = None - self._init_screenshot_hotkeys() # Setup UI self.setup_ui() self.apply_dark_theme() self.create_menu_bar() self.create_status_bar() + + # Initialize screenshot hotkeys AFTER UI is setup + self._init_screenshot_hotkeys() # Load persistent settings self._load_settings()