Skip to content

Commit

Permalink
Fix bug (#16) preventing setting hotkeys sometimes
Browse files Browse the repository at this point in the history
Hotkey boxes wouldn't lose focus when pressing a key, preventing them from being set on some versions (caught on Garuda Linux with KDE). This change fixes this. Thanks to @paulitepsa for finding and fixing this!
  • Loading branch information
pilgrimtabby committed Jan 12, 2025
1 parent 5ad3088 commit 5d386cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/ui_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,8 +1665,10 @@ def _handle_key_press(
self._hotkey_box_to_change = hotkey_box
self._hotkey_box_key_code = key_code
self._hotkey_box_key_name = key_name
return

hotkey_box.clearFocus()
return

# Use #2 (set "hotkey pressed" flag for _react_to_hotkey_flags)
if not self._settings_window.isVisible():
for hotkey_pressed, setting in {
Expand Down

0 comments on commit 5d386cf

Please sign in to comment.