Make the message context menu more accessible

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-09-26 14:24:10 +01:00
parent 14e3cb8736
commit 8ec0ffea3a
3 changed files with 69 additions and 41 deletions

View file

@ -84,9 +84,9 @@ export class TabbedView extends React.Component {
const onClickHandler = () => this._setActiveTab(tab);
const onKeyDownHandler = (e) => {
e.stopPropagation();
e.preventDefault();
if (e.keyCode === KeyCode.ENTER || e.keyCode === KeyCode.SPACE) {
e.stopPropagation();
e.preventDefault();
this._setActiveTab(tab);
}
};