viking icon indicating copy to clipboard operation
viking copied to clipboard

Feature request: Context relevant shortcut

Open mario-spitze opened this issue 6 years ago • 3 comments

For normal functions you have already shortcuts which can be seen in the .viking/keys.rc file. Is it possible to set shortcuts for right-click functions in a special context? So you could, in the track edit mode, faster insert and delete track points.

mario-spitze avatar Feb 03 '19 12:02 mario-spitze

Sadly I don't think it possible (within reason i.e. without significant change).

The configurable key shortcuts are only those that work globally across the application, rather than those in specific contexts. They are handled differently at a low level, which is why it would be difficult to change the code in a coherent manner.

I notice that ATM the 'Menu' key on the keyboard does nothing. So by adding this as an alternative way to access the right click menu, and probably some new 'Goto' menu options such as go to the next or previous trackpoint (when a trackpoint is selected); can make editing a bit more keyboard friendly. (Albeit with the fixed accelerator key shortcuts).

rnorris avatar Feb 09 '19 11:02 rnorris

What would be quite straight-forward to add would be some fixed keyboard shortcuts for when either track and route edit tool is in use.

Such shortcuts could be:

Left Arrow = Move to Previous Track Point Right Arrow = Move to Next Track Point

NumKeypad '+' or '[' = Insert Point After NumKeypad '-' or ']' = Insert Point Before

Using the '[' and ']' could be useful for laptops keyboards were the numpad isn't readily available.

I'm of course open to suggestions for the default shortcuts.

rnorris avatar Feb 22 '19 00:02 rnorris

Left Arrow, etc. should be Google Maps/Earth, OSM.ORG compatible, i.e., simply dragging the map around.

jidanni avatar Apr 26 '20 03:04 jidanni