PLT-2784 Channel Navigation Shortcuts (#2979)

* Completed shortcuts

* Fixed up logic

* Removed shortcut conflicts

* Added code to limit channel navigation within group

* Made code conform to user display, fixed minor logic

* Completed shortcuts

* Fixed up logic

* Removed shortcut conflicts

* Added code to limit channel navigation within group

* Made code conform to user display, fixed minor logic
Этот коммит содержится в:
David Lu
2016-05-16 19:08:59 -04:00
коммит произвёл Corey Hulen
родитель 1b9deb4392
Коммит 2ccf5bbaa2
3 изменённых файлов: 83 добавлений и 4 удалений

Просмотреть файл

@@ -205,7 +205,7 @@ class CreateComment 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 lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
@@ -224,7 +224,7 @@ class CreateComment 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 lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
if (!lastPost) {
return;