From 6da520ed4d23befc8372209f822fa4b66a7640f4 Mon Sep 17 00:00:00 2001 From: Henrik Fehlauer Date: Tue, 9 Jun 2020 18:00:00 +0000 Subject: [PATCH] Add shortcut to toggle profile switcher Press 'G' to open the profile switcher, select a profile with the arrow keys, apply with 'Enter' and close the switcher with 'Escape'. While 'T' and 'P' will be / were already taken, 'G' is at least easily reachable with the left hand for users using a mouse with their right hand at the same time. Since Bootstrap keeps updating the tooltip when changing options in the dropdown (which is useful in case the text is longer than the width of the control), the shortcut text needs to be applied dynamically too. --- index.html | 2 +- js/control/RoutingOptions.js | 20 ++++++++++++++++++++ locales/en.json | 3 ++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2f871e3..30133be 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ >