Add shortcuts to toggle sidebar and switch tabs

The 'T' key will show/hide the most recent sidebar tab.

Pressing 'Shift+T' will switch to the next sidebar tab, possibly
wrapping around to the first tab.

If the Itinerary tab is hidden, it will be skipped.
This commit is contained in:
Henrik Fehlauer 2020-06-13 18:00:00 +00:00
parent e56d213931
commit 844a9038ee
3 changed files with 71 additions and 10 deletions

View file

@ -190,17 +190,21 @@
"total_known": "Total Known:",
"unknown": "Unknown"
},
"title": "Analysis"
"title": "Analysis",
"tooltip": "Analyse route\n(T key to toggle, Shift+T to switch to next tab)"
},
"customize-profile": {
"title": "Customize profile"
"title": "Customize profile",
"tooltip": "Customize profile\n(T key to toggle, Shift+T to switch to next tab)"
},
"data": {
"sync-map": "Synchronize map",
"title": "Data"
"title": "Data",
"tooltip": "Show detailed route data table\n(T key to toggle, Shift+T to switch to next tab)"
},
"itinerary": {
"title": "Itinerary"
"title": "Itinerary",
"tooltip": "Show itinerary\n(T key to toggle, Shift+T to switch to next tab)"
},
"layers": {
"category": {
@ -226,7 +230,8 @@
"name": "Name",
"type": "Type"
},
"title": "Layers"
"title": "Layers",
"tooltip": "Select layers\n(T key to toggle, Shift+T to switch to next tab)"
},
"profile": {
"apply": "Apply",