[PLT-3377] Open up a shortcuts dialog instead of printing help text (#7064)

* open up a shortcuts dialog instead of printing help text

* Updating UI for keyboard shortcuts modal

* update PR per PLT-7284

* fix typo error

* fix mixed up shortcut keys

* move to client side

* fix shortcuts list, remove unused function and revert server side code for autocompletion

* remove quick team switcher
Этот коммит содержится в:
Saturnino Abril
2017-08-18 17:04:05 +08:00
коммит произвёл GitHub
родитель 96eab12027
Коммит 9097289c2c
15 изменённых файлов: 561 добавлений и 244 удалений

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

@@ -66,12 +66,10 @@ export function executeCommand(message, args, success, error) {
const err = {message: Utils.localizeMessage('create_post.shortcutsNotSupported', 'Keyboard shortcuts are not supported on your device')};
error(err);
return;
} else if (Utils.isMac()) {
msg += ' mac';
} else if (message.indexOf('mac') !== -1) {
msg = '/shortcuts';
}
break;
GlobalActions.showShortcutsModal();
return;
case '/leave': {
// /leave command not supported in reply threads.
if (args.channel_id && (args.root_id || args.parent_id)) {

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

@@ -211,6 +211,13 @@ export function showAccountSettingsModal() {
});
}
export function showShortcutsModal() {
AppDispatcher.handleViewAction({
type: ActionTypes.TOGGLE_SHORTCUTS_MODAL,
value: true
});
}
export function showDeletePostModal(post, commentCount = 0) {
AppDispatcher.handleViewAction({
type: ActionTypes.TOGGLE_DELETE_POST_MODAL,