The slash key is a well-known shortcut to open and focus the
search field in web apps, e. g. DuckDuckGo or Google Plus. Some editors and pagers use the same shortcut (Vim, less, ...). This commit adds an event handler for the pressed / key which calls the `ShowSearch()` function.
This commit is contained in:
parent
0e2bf8417f
commit
76a2202a20
@ -713,6 +713,10 @@ Miniflux.Event = (function() {
|
||||
case 63:
|
||||
Miniflux.Nav.ShowHelp();
|
||||
break;
|
||||
case '/':
|
||||
case 47:
|
||||
Miniflux.Nav.ShowSearch();
|
||||
break;
|
||||
case 'Q':
|
||||
case 81: // Q
|
||||
case 'q':
|
||||
|
@ -196,6 +196,10 @@ Miniflux.Event = (function() {
|
||||
case 63:
|
||||
Miniflux.Nav.ShowHelp();
|
||||
break;
|
||||
case '/':
|
||||
case 47:
|
||||
Miniflux.Nav.ShowSearch();
|
||||
break;
|
||||
case 'Q':
|
||||
case 81: // Q
|
||||
case 'q':
|
||||
|
Loading…
Reference in New Issue
Block a user