diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-10-18 18:42:02 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-10-18 19:00:59 +0200 |
commit | b13c34de3a5fddd23b8ebf55e37f61078aebcfca (patch) | |
tree | 38500d8b6a6c3e6905ff161c9d4b14ce52610a93 /app/javascript/flavours | |
parent | 38b11e0b580daabe7072a15d18f8230c8a078f67 (diff) |
Fix fav/boosts hotkeys not working on detailed statuses
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/status/index.js b/app/javascript/flavours/glitch/features/status/index.js index 4382748d5..cfa1450f6 100644 --- a/app/javascript/flavours/glitch/features/status/index.js +++ b/app/javascript/flavours/glitch/features/status/index.js @@ -127,7 +127,7 @@ export default class Status extends ImmutablePureComponent { if (status.get('favourited')) { this.props.dispatch(unfavourite(status)); } else { - if (e.shiftKey || !favouriteModal) { + if ((e && e.shiftKey) || !favouriteModal) { this.handleModalFavourite(status); } else { this.props.dispatch(openModal('FAVOURITE', { status, onFavourite: this.handleModalFavourite })); @@ -164,7 +164,7 @@ export default class Status extends ImmutablePureComponent { if (status.get('reblogged')) { this.props.dispatch(unreblog(status)); } else { - if (e.shiftKey || !boostModal) { + if ((e && e.shiftKey) || !boostModal) { this.handleModalReblog(status); } else { this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog })); |