We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://jsfiddle.net/5uLqzspm
Did you notice that if you search for somethings and then press Esc, then you can't search again?
To make it working again you have to focusout and focusin...
The text was updated successfully, but these errors were encountered:
Any workaround for this one?
Sorry, something went wrong.
I could make this work by focusing on a "hidden" checkbox when esc is pressed, and then focusing again on the #search. Something like:
esc
#search
<input type="checkbox" style="width: 0px" id="reset_search" > <script> $(window).on('keyup', function(evt){ if(evt.which == 27){ $("#search").val(''); $("#reset_search").focus(); setTimeout(function(){ $("#search").focus(); }, 50); } }); </script>
@rubenanapu, your answer is very helpful. Thank you.
The point is the input should loose focus then re-focus again. So, I do something like $(this).val('').blur().focus() when escape button pressed.
$(this).val('').blur().focus()
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
https://jsfiddle.net/5uLqzspm
Did you notice that if you search for somethings and then press Esc, then you can't search again?
To make it working again you have to focusout and focusin...
The text was updated successfully, but these errors were encountered: