mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't activate search for keys with modifiers
This commit is contained in:
@@ -19,7 +19,9 @@ $(document).on("keydown", function (event) {
|
||||
|
||||
var doNotOpenSearch = [13, 27, 32];
|
||||
$(document).on("keypress", function (event) {
|
||||
if (event.which && (! _.contains(doNotOpenSearch, event.which))) {
|
||||
// Don't activate search for special keys or keys with modifiers
|
||||
if (event.which && (! _.contains(doNotOpenSearch, event.which)) &&
|
||||
(! event.ctrlKey) && (! event.metaKey)) {
|
||||
if (! Session.get("searchOpen")) {
|
||||
Session.set("searchOpen", true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user