diff --git a/src/js/dialogs-manager.js b/src/js/dialogs-manager.js index dd9ff25..86d43fe 100644 --- a/src/js/dialogs-manager.js +++ b/src/js/dialogs-manager.js @@ -785,7 +785,7 @@ } } - this.focusedButton = this.buttons[nextButtonIndex].focus(); + this.focusedButton = this.buttons[nextButtonIndex].trigger('focus'); } }, addButton: function(options) { @@ -881,7 +881,7 @@ } if (this.focusedButton) { - this.focusedButton.focus(); + this.focusedButton.trigger('focus'); } }, unbindHotKeys: function() {