Closed roomrys closed 3 months ago
The changes enhance the handling of keyboard shortcuts within the application by transitioning from addition to bitwise operations for defining key combinations. A new dictionary for mapping track indices to Qt.Key
values improves the clarity and maintainability of the shortcut logic, ensuring a more consistent user experience.
Files | Change Summary |
---|---|
sleap/gui/app.py | Updated keyboard shortcut definitions to use bitwise OR instead of addition; introduced key_mapping dictionary for clearer track index to key value mapping. |
In a world of keys and tracks,
A rabbit hops, with joyful cracks!
Shortcuts neat and clear as day,
We frolic in our coding play.
With every byte, we leap and bound,
In this sweet app, joy is found! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 74.49%. Comparing base (
7ed1229
) to head (4f20bfd
). Report is 32 commits behind head on develop.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
In our attempts to migrate to PySide6 in a downstream branch, we are getting the following error:
and the following warning:
.
This PR refactors for PySide6 by using the
|
operator instead of the depreciated+
operator when combining keys (which is also supported by PySide2).Types of changes
Does this address any currently open issues?
1841
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
New Features
Bug Fixes