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

dialog shortcuts should receive higher prio than custom shortcuts #1166

Closed
axd1967 opened this issue Jul 12, 2020 · 3 comments
Closed

dialog shortcuts should receive higher prio than custom shortcuts #1166

axd1967 opened this issue Jul 12, 2020 · 3 comments
Assignees
Milestone

Comments

@axd1967
Copy link
Contributor

axd1967 commented Jul 12, 2020

Expected Behaviour

Shortcuts defined in dialogs (e.g. Alt-C in #1165) should always override a custom keyboard shortcut (F7)

Actual Behaviour

When attempting to run the calculation via keyboard (Alt-C), nothing happens. This is because a global shortcut is taking precedence and doing something else.

Steps to reproduce

  1. Assign Alt-C to some custom action (e.g. "Show crosshairs")
  2. open ephemeris dialog
  3. press Alt-C
    Observe that the custom action is invoked instead.

System

  • Stellarium version: 0.20.2.18060 (master)

  • Operating system: KUbuntu 18.4

  • Graphics Card: <Manufacturer (likely Intel, NVidia, AMD?), Model (HD, Geforce, Radeon..., with model number), driver version?>

  • Screen type (if applicable): Resolution, HighDPI, scaling

Logfile

If possible, attach the logfile log.txt from your user data directory. Look into the Guide for its location.
log.txt

@alex-w alex-w added this to the 0.20.3 milestone Jul 12, 2020
@alex-w alex-w self-assigned this Jul 12, 2020
@alex-w alex-w closed this as completed Jul 12, 2020
@alex-w
Copy link
Member

alex-w commented Jul 18, 2020

Please check version 0.20.2.18074

@axd1967
Copy link
Contributor Author

axd1967 commented Dec 14, 2020

I have the impression that the test procedure no longer works: I cannot assign ALT+C?

possibly related to #1294

@axd1967
Copy link
Contributor Author

axd1967 commented Jul 20, 2021

A tip to remember: many (if not all?) dialogs capture the keyboard shortcuts, thus preventing general keys such as e.g. "a" for atmosphere to work, because a dialog has focus. Sometimes you want to interact with the dialog (eg time window) via mouse scrollwheel, and at the same time want to trigger other keyboard driven actions.

To achieve this, you have to remove the focus from all dialogs.

To do so, open and then close some other dialog such as the search dialog (F3) or bookmarks or whatever. This will take away the focus from dialogs that need to stay open (eg time dialog, landscape dialog, etc) and you will be able to combine scrollwheel mouse actions in a dialog with general keyboard actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants