Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gui): add global shortcuts management #317

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

AAClause
Copy link
Member

Fixes #291

@AAClause AAClause changed the title fix: new global shortcuts feat(gui): add global shortcuts management Oct 21, 2024
@AAClause AAClause force-pushed the globalShortcuts branch 2 times, most recently from 92814a0 to d5767d5 Compare October 27, 2024 21:24
@AAClause AAClause force-pushed the globalShortcuts branch 2 times, most recently from dfb4022 to d5d9f90 Compare November 5, 2024 07:04
- Add `WXK_TO_VK_CODE_MAP` to map WX key codes to virtual key (VK) codes.
- Rename `get_key_name_from_win32con` to `get_vk_code_display_name` for better clarity.
- Implement `get_vk_code` to facilitate conversion from WX to VK codes and integrate with existing logic.
- Update `ShortcutCaptureDialog` to correctly capture shortcuts using both modifier and VK codes.
- Improve UI with `update_ui` method and bind key events for enhanced interaction and shortcut setting consistency.
…ule (WIP)

- Moved hotkey functionalities, such as key display and conversion to a new module `hotkeys.py`.
- Simplified global shortcuts dialog by removing redundant code and improving key press handling.
- Added support for registering and unregistering global hotkeys within the `GlobalShortcutsDialog`.
- Implemented `HotkeyHandler` and `HotkeyHandlerMixin` for managing global hotkeys in the application.
- Enhanced debug logging for key code conversion and shortcut assignment processes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AltGr shortcuts don't work
1 participant