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:
Marcus Jaschen 2016-12-12 12:31:45 +01:00
parent 0e2bf8417f
commit 76a2202a20
2 changed files with 8 additions and 0 deletions

View File

@ -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':

View File

@ -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':