diff options
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r-- | webapp/components/create_post.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index 32f1b387a..3f319bb58 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -351,7 +351,7 @@ class CreatePost extends React.Component { return; } - if (!e.ctrlKey && !e.metaKey && e.keyCode === KeyCodes.UP && this.state.messageText === '') { + if (!e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP && this.state.messageText === '') { e.preventDefault(); const channelId = ChannelStore.getCurrentId(); @@ -373,7 +373,7 @@ class CreatePost extends React.Component { }); } - if ((e.ctrlKey || e.metaKey) && e.keyCode === KeyCodes.UP) { + if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) { const channelId = ChannelStore.getCurrentId(); const lastPost = PostStore.getCurrentUsersLatestPost(channelId); if (!lastPost) { |