Keyboard shortcut to open the sticker picker (#7985)

This commit is contained in:
Andy Balaam 2022-03-08 15:05:36 +00:00 committed by GitHub
parent 1f4e286db9
commit a792097d02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 0 deletions

View file

@ -341,6 +341,10 @@ export default class MessageComposer extends React.Component<IProps, IState> {
});
};
private toggleStickerPickerOpen = () => {
this.setStickerPickerOpen(!this.state.isStickerPickerOpen);
};
private toggleButtonMenu = (): void => {
this.setState({
isMenuOpen: !this.state.isMenuOpen,
@ -373,6 +377,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
replyToEvent={this.props.replyToEvent}
onChange={this.onChange}
disabled={this.state.haveRecording}
toggleStickerPickerOpen={this.toggleStickerPickerOpen}
/>,
);