Improved repeating esc behaviour

This commit is contained in:
Igor Zhukov 2015-05-01 17:53:39 +03:00
parent da77701558
commit a0f4949807

View File

@ -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);
}