How do I focus search form input field when these two keys are pressed using Javascript?
shift + / will generate the ?
So basically, on keydown for question mark, the search form gets autofocus.
Here is my current bootstrap 3 search form code:
<form class="navbar-form navbar-right" role="form" method="post" action="{$WEB_ROOT}/knowledgebase.php?action=search">
<div class="form-group">
<input id="inputMessage" class="form-control" placeholder="Search website.com" type="text" name="search">
</div>
<button type="submit" class="btn btn-default"></button>
</form>