Stellarium / stellarium

Stellarium is a free GPL software which renders realistic skies in real time with OpenGL. It is available for Linux/Unix, Windows and macOS. With Stellarium, you really see what you can see with your eyes, binoculars or a small telescope.
https://stellarium.org
GNU General Public License v2.0
7.75k stars 821 forks source link

keyboard shortcut to calculate ephemeris #1165

Closed axd1967 closed 4 years ago

axd1967 commented 4 years ago

Is your feature request related to a problem? Please describe. I am running a lot of ephemeris calculations, and am hampered by the UI that is mainly mouse driven, I lose a lot of time moving the mouse to the "Calculate ephemeris" button, On a laptop with a touchpad this is even more difficult

Describe the solution you'd like

e.g. Alt-C executes the button, Alt-S saves, Alt-L cleanup

Describe alternatives you've considered none

Additional context image

alex-w commented 4 years ago

Please check version 0.20.2.18060

axd1967 commented 4 years ago

Not working... Logfile says "ambiguous shortcut overload" Then I find out: I previously assigned Alt+C to another action. But in the dialog, that Alt-C should get a higher priority than a (custom) shortcut keyboard -> new issue.

Note also: it seems to be possible to type in the dropdown, which is highly unusual.

image

alex-w commented 4 years ago

Please check version 0.20.2.18074

axd1967 commented 4 years ago

I checked this in 0.20.3 but this is not exactly what I had in mind.

rather, buttons in the dialog should be associated with local shortcuts (these are recognised by an underscore in the button text). But there is a snag: as the button texts are translated, what should happen with the shortcuts? No idea. So the implementation is not so trivial.

Also. I don't know if it makes sense to define a global shortcut for e.g. "Calculate ephemeris" as these will not change (because the parameters are fixed in the Astrocalc GUI).

Also, a bug has appeared now: after assigning a global shortcut and restarting , the app crashes when invoking the custom shortcut, which is probably related to the fact that the astrocalc parameters are not correctly reinitialised. I will create a new issue for this.

axd1967 commented 3 years ago

if I'm not mistaken, this was reverted due to issues with the implementation.