Add forward slash as keyboard shortcut to focus the search field

Closes #542.
pull/547/head
Thibaut Courouble 8 years ago
parent bd2224b9d1
commit 06cf118786

@ -76,6 +76,10 @@ class app.Shortcuts
@trigger 'down'
@showTip?()
false
when 191
unless event.target.form
@trigger 'typing'
false
handleKeydownSuperEvent: (event) ->
switch event.which

@ -107,7 +107,7 @@ app.templates.helpPage = """
<dd class="_shortcuts-dd">Show this page
</dl>
<p class="_note">
<strong>Tip:</strong> If the cursor is no longer in the search field, press backspace or
<strong>Tip:</strong> If the cursor is no longer in the search field, press <code class="_label">/</code> or
continue to type and it will refocus the search field and start showing new results.
<h2 class="_lined-heading" id="abbreviations">Abbreviations</h2>

Loading…
Cancel
Save