Skip to content

Commit

Permalink
Merge pull request wenzhixin#1921 from daciot/develop
Browse files Browse the repository at this point in the history
Fixed  key-events on toolbar elements
  • Loading branch information
wenzhixin committed Jan 28, 2016
2 parents 770fe4f + 7c37c0b commit fe1fa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/key-events/bootstrap-table-key-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$toggle = that.$toolbar.find('button[name="toggle"]'),
$paginationSwitch = that.$toolbar.find('button[name="paginationSwitch"]');

if (document.activeElement === $search.get(0)) {
if (document.activeElement === $search.get(0) || !$.contains(document.activeElement ,that.$toolbar.get(0))) {
return true;
}

Expand Down

0 comments on commit fe1fa34

Please sign in to comment.