From dd4e1ba488379ae7d7ca7c2313094a568bfd2675 Mon Sep 17 00:00:00 2001 From: KDSBrowne <kert.browne85@gmail.com> Date: Thu, 8 Jun 2017 10:40:14 -0700 Subject: [PATCH] fix keycode events --- .../imports/ui/components/dropdown/list/component.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx b/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx index a56e18ba4e..a59d3645bf 100755 --- a/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/dropdown/list/component.jsx @@ -126,8 +126,13 @@ export default class DropdownList extends Component { return; } - document.activeElement.firstChild.click(); - onActionsHide(); + if ([KEY_CODES.ENTER, KEY_CODES.ARROW_RIGHT].includes(event.keyCode)) { + event.stopPropagation(); + document.activeElement.firstChild.click(); + onActionsHide(); + return; + } + } } -- GitLab