Add shortcut for theme picker menu
This commit is contained in:
parent
f7801d6c7c
commit
8b20e9b478
1 changed files with 10 additions and 0 deletions
|
@ -415,6 +415,15 @@ function defocusSearchBar() {
|
|||
displayHelp(true, ev);
|
||||
break;
|
||||
|
||||
case "t":
|
||||
case "T":
|
||||
displayHelp(false, ev);
|
||||
ev.preventDefault();
|
||||
var themePicker = getThemePickerElement();
|
||||
themePicker.click();
|
||||
themePicker.focus();
|
||||
break;
|
||||
|
||||
default:
|
||||
var themePicker = getThemePickerElement();
|
||||
if (themePicker.parentNode.contains(ev.target)) {
|
||||
|
@ -2852,6 +2861,7 @@ function defocusSearchBar() {
|
|||
var shortcuts = [
|
||||
["?", "Show this help dialog"],
|
||||
["S", "Focus the search field"],
|
||||
["T", "Focus the theme picker menu"],
|
||||
["↑", "Move up in search results"],
|
||||
["↓", "Move down in search results"],
|
||||
["↹", "Switch tab"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue