onReply: PropTypes.func,
onFavourite: PropTypes.func,
onReblog: PropTypes.func,
+ onBookmark: PropTypes.func,
onDelete: PropTypes.func,
onDirect: PropTypes.func,
onMention: PropTypes.func,
this.props.onReblog(this.props.status, e);
}
+ handleHotkeyBookmark = e => {
+ this.props.onBookmark(this.props.status, e);
+ }
+
handleHotkeyMention = e => {
e.preventDefault();
this.props.onMention(this.props.status.get('account'), this.context.router.history);
moveUp: this.handleHotkeyMoveUp,
moveDown: this.handleHotkeyMoveDown,
toggleSpoiler: this.handleExpandedToggle,
+ bookmark: this.handleHotkeyBookmark,
};
const computedClass = classNames('status', `status-${status.get('visibility')}`, {
<td><kbd>b</kbd></td>
<td><FormattedMessage id='keyboard_shortcuts.boost' defaultMessage='to boost' /></td>
</tr>
+ <tr>
+ <td><kbd>d</kbd></td>
+ <td><FormattedMessage id='keyboard_shortcuts.bookmark' defaultMessage='to bookmark' /></td>
+ </tr>
<tr>
<td><kbd>enter</kbd>, <kbd>o</kbd></td>
<td><FormattedMessage id='keyboard_shortcuts.enter' defaultMessage='to open status' /></td>
this.handleReblogClick(this.props.status);
}
+ handleHotkeyBookmark = () => {
+ this.handleBookmarkClick(this.props.status);
+ }
+
handleHotkeyMention = e => {
e.preventDefault();
this.handleMentionClick(this.props.status);
reply: this.handleHotkeyReply,
favourite: this.handleHotkeyFavourite,
boost: this.handleHotkeyBoost,
+ bookmark: this.handleHotkeyBookmark,
mention: this.handleHotkeyMention,
openProfile: this.handleHotkeyOpenProfile,
toggleSpoiler: this.handleExpandedToggle,