mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 07:49:41 +08:00

Changed the search button binding from a click binding in mousetrap.js to a function binding. Added a showSearch function that uses jquery to click the '#search-button' element and the function returns false preventing the default action and stops the keydown event from bubbling upwards. Meta Discourse Bug Thread: https://meta.discourse.org/t/shortcut-for-search-leaves-a-in-the-search-field/14394 Mousetrap reference: http://craig.is/killing/mice