Adds keyboard hotkey for revealing/hiding statuses (#7173)
Resolves #5550
This commit is contained in:
parent
e5dd385431
commit
fad7b9f5f2
3 changed files with 11 additions and 0 deletions
|
@ -122,6 +122,10 @@ export default class Status extends ImmutablePureComponent {
|
|||
this.props.onMoveDown(this.props.status.get('id'));
|
||||
}
|
||||
|
||||
handleHotkeyToggleHidden = () => {
|
||||
this.props.onToggleHidden(this._properStatus());
|
||||
}
|
||||
|
||||
_properStatus () {
|
||||
const { status } = this.props;
|
||||
|
||||
|
@ -224,6 +228,7 @@ export default class Status extends ImmutablePureComponent {
|
|||
openProfile: this.handleHotkeyOpenProfile,
|
||||
moveUp: this.handleHotkeyMoveUp,
|
||||
moveDown: this.handleHotkeyMoveDown,
|
||||
toggleHidden: this.handleHotkeyToggleHidden,
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue