From f8f64799efa85d0bb5df9606a5d955fc9f7b7517 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Thu, 9 Apr 2020 09:38:00 -0700 Subject: [PATCH] Fix/remove extra keydown listener in UI After leaving tab navigation, we would wind up with an extra callback fired on keydown. This drops the duplicate. Change-Id: I4e7bc0c433e5648759788a9c1a70267844c2e3f1 --- ui/controls.js | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/controls.js b/ui/controls.js index 11632ea894..69d3569439 100644 --- a/ui/controls.js +++ b/ui/controls.js @@ -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)); } /**