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

macOS: Change drag copy shortcut from Command to Option #7325

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

Conversation

tresf
Copy link
Member

@tresf tresf commented Jun 17, 2024

Closes #2890

event->modifiers() & Qt::AltModifier )
#else
event->modifiers() & Qt::ControlModifier )
#endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is repeated several times throughout the code. I propose to put it into a helper method with a speaking name. Doing so would also reduce the places where the #ifdef LMMS_BUILD_APPLE checks are needed/done.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I invite anyone with better understanding of the code to do so and push directly to this branch. ♥️

@@ -141,6 +141,12 @@ constexpr const char* UI_CTRL_KEY =
#else
"Ctrl";
#endif
constexpr const char* UI_ALT_KEY =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just so you note, I'm planning to remove this entire file eventually, so would be good if we find a good place in case i go through it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads up, however I would expect this to be handled as part of that removal (i.e. "refactor").

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.

Command + Drag does not work (Apple)
3 participants