Browse Source

Improved repeating esc behaviour

master
Igor Zhukov 10 years ago
parent
commit
a0f4949807
  1. 5
      app/js/directives.js

5
app/js/directives.js

@ -595,6 +595,11 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -595,6 +595,11 @@ angular.module('myApp.directives', ['myApp.filters'])
}
else {
$scope.$emit('esc_no_more');
// Strange Chrome bug, when field doesn't get blur, but becomes inactive after location change
setTimeout(function () {
searchField.blur();
searchField.focus();
}, 100);
}
return cancelEvent(e);
}

Loading…
Cancel
Save