Added CMD+UP for OSX (#2987)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
0258fcfa5c
Коммит
c5f105787c
@@ -205,7 +205,7 @@ class CreateComment extends React.Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!e.ctrlKey && e.keyCode === KeyCodes.UP && this.state.messageText === '') {
|
if (!e.ctrlKey && !e.metaKey && e.keyCode === KeyCodes.UP && this.state.messageText === '') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
|
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
|
||||||
@@ -224,7 +224,7 @@ class CreateComment extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.ctrlKey && e.keyCode === KeyCodes.UP) {
|
if ((e.ctrlKey || e.metaKey) && e.keyCode === KeyCodes.UP) {
|
||||||
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
|
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
|
||||||
if (!lastPost) {
|
if (!lastPost) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -351,7 +351,7 @@ class CreatePost extends React.Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!e.ctrlKey && e.keyCode === KeyCodes.UP && this.state.messageText === '') {
|
if (!e.ctrlKey && !e.metaKey && e.keyCode === KeyCodes.UP && this.state.messageText === '') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const channelId = ChannelStore.getCurrentId();
|
const channelId = ChannelStore.getCurrentId();
|
||||||
@@ -373,7 +373,7 @@ class CreatePost extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.ctrlKey && e.keyCode === KeyCodes.UP) {
|
if ((e.ctrlKey || e.metaKey) && e.keyCode === KeyCodes.UP) {
|
||||||
const channelId = ChannelStore.getCurrentId();
|
const channelId = ChannelStore.getCurrentId();
|
||||||
const lastPost = PostStore.getCurrentUsersLatestPost(channelId);
|
const lastPost = PostStore.getCurrentUsersLatestPost(channelId);
|
||||||
if (!lastPost) {
|
if (!lastPost) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user