restore shortcuts for menus

This commit is contained in:
KDSBrowne 2021-08-08 17:22:01 +00:00
parent 4e28cb0347
commit f72e075472
3 changed files with 6 additions and 3 deletions

View File

@ -270,7 +270,8 @@ class ActionsDropdown extends PureComponent {
}
return (
<BBBMenu
<BBBMenu
accessKey={OPEN_ACTIONS_AK}
trigger={
<Button
className={isDropdownOpen ? styles.hideDropdownButton : ''}

View File

@ -88,11 +88,11 @@ class BBBMenu extends React.Component {
const actionsItems = this.makeMenuItems();
const menuClasses = [styles.menu];
if (wide) menuClasses.push(styles.wide)
if (wide) menuClasses.push(styles.wide);
return (
<div>
<div onClick={this.handleClick}>{trigger}</div>
<div onClick={this.handleClick} accessKey={this.props?.accessKey}>{trigger}</div>
<Menu
{...opts}
anchorEl={anchorEl}
@ -148,6 +148,7 @@ BBBMenu.propTypes = {
iconRight: PropTypes.string,
divider: PropTypes.bool,
dividerTop: PropTypes.bool,
accessKey: PropTypes.string,
})).isRequired,
onCloseCallback: PropTypes.func,

View File

@ -302,6 +302,7 @@ class SettingsDropdown extends PureComponent {
return (
<BBBMenu
accessKey={OPEN_OPTIONS_AK}
trigger={
<Button
label={intl.formatMessage(intlMessages.optionsLabel)}