Skip to content

Commit

Permalink
Fix/remove extra keydown listener in UI
Browse files Browse the repository at this point in the history
After leaving tab navigation, we would wind up with an extra callback
fired on keydown.  This drops the duplicate.

Change-Id: I4e7bc0c433e5648759788a9c1a70267844c2e3f1
  • Loading branch information
joeyparrish committed Apr 9, 2020
1 parent 3b52166 commit f8f6479
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ui/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,6 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
*/
onMouseDown_() {
this.eventManager_.unlisten(window, 'mousedown');
this.eventManager_.listen(window, 'keydown', (e) => this.onKeyDown_(e));
}

/**
Expand Down

0 comments on commit f8f6479

Please sign in to comment.