Make the message context menu more accessible
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
14e3cb8736
commit
8ec0ffea3a
3 changed files with 69 additions and 41 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue