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

Make keyboard modifiers for mouse motions exact #3468

Merged
merged 2 commits into from
Oct 22, 2023

Conversation

10110111
Copy link
Contributor

@10110111 10110111 commented Oct 22, 2023

Description

Currently one can set a custom marker with e.g. Shift+Ctrl modifier, which contaminates such combos rendering them impossible to use for other purposes. These commits make the modifiers exact, i.e. for custom markers no keys except Shift must be pressed, so e.g. Shift+Ctrl+click doesn't set a custom marker, while Shift+click does. Similarly for time dragging: only Ctrl triggers it, not when other modifiers are pressed.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • Housekeeping

@github-actions
Copy link

Great PR! Please pay attention to the following items before merging:

Files matching src/**/*.cpp:

  • Are possibly unused includes removed?

This is an automatically generated QA checklist based on modified files.

Copy link
Member

@gzotti gzotti left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks.

Before this commit one could set a custom marker with e.g. Shift+Ctrl
modifier, which contaminates such combos rendering them impossible to
use for other purposes. Now the modifier is fixed to exactly Shift,
without any other keys pressed, so e.g. Shift+Ctrl+click doesn't set a
custom marker, while Shift+click does.
@10110111 10110111 merged commit 70e4f4d into Stellarium:master Oct 22, 2023
9 checks passed
@10110111 10110111 deleted the exact-modifiers branch October 22, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants