[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 удалений

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

@@ -2105,6 +2105,54 @@
"setting_upload.import": "Import",
"setting_upload.noFile": "No file selected.",
"setting_upload.select": "Select file",
"shortcuts.info": "Begin a message with / for a list of all the commands at your disposal.",
"shortcuts.header": "Keyboard Shortcuts",
"shortcuts.nav.header": "Navigation",
"shortcuts.nav.prev": "Previous channel:\tAlt|Up",
"shortcuts.nav.prev.mac": "Previous channel:\t⌥|Up",
"shortcuts.nav.next": "Next channel:\tAlt|Down",
"shortcuts.nav.next.mac": "Next channel:\t⌥|Down",
"shortcuts.nav.unread_prev": "Previous unread channel:\tAlt|Shift|Up",
"shortcuts.nav.unread_prev.mac": "Previous unread channel:\t⌥|Shift|Up",
"shortcuts.nav.unread_next": "Next unread channel:\tAlt|Shift|Down",
"shortcuts.nav.unread_next.mac": "Next unread channel:\t⌥|Shift|Down",
"shortcuts.nav.switcher": "Quick channel switcher:\tCtrl|K",
"shortcuts.nav.switcher.mac": "Quick channel switcher:\t⌘|K",
"shortcuts.nav.direct_messages_menu": "Direct messages menu:\tCtrl|Shift|K",
"shortcuts.nav.direct_messages_menu.mac": "Direct messages menu:\t⌘|Shift|K",
"shortcuts.nav.settings": "Account settings:\tCtrl|Shift|A",
"shortcuts.nav.settings.mac": "Account settings:\t⌘|Shift|A",
"shortcuts.nav.recent_mentions": "Recent mentions:\tCtrl|Shift|M",
"shortcuts.nav.recent_mentions.mac": "Recent mentions:\t⌘|Shift|M",
"shortcuts.msgs.header": "Messages",
"shortcuts.msgs.mark_as_read": "Mark current channel as read:\tEsc",
"shortcuts.msgs.input.header": "Works inside an empty input field",
"shortcuts.msgs.edit": "Edit last message in channel:\tUp",
"shortcuts.msgs.reply": "Reply to last message in channel:\tShift|Up",
"shortcuts.msgs.reprint_prev": "Reprint previous message:\tCtrl|Up",
"shortcuts.msgs.reprint_prev.mac": "Reprint previous message:\t⌘|Up",
"shortcuts.msgs.reprint_next": "Reprint next message:\tCtrl|Down",
"shortcuts.msgs.reprint_next.mac": "Reprint next message:\t⌘|Down",
"shortcuts.msgs.comp.header": "Autocomplete",
"shortcuts.msgs.comp.username": "Username:\t@|[a-z]|Tab",
"shortcuts.msgs.comp.channel": "Channel:\t~|[a-z]|Tab",
"shortcuts.msgs.comp.emoji": "Emoji:\t:|[a-z]|Tab",
"shortcuts.files.header": "Files",
"shortcuts.files.upload": "Upload files:\tCtrl|U",
"shortcuts.files.upload.mac": "Upload files:\t⌘|U",
"shortcuts.browser.header": "Built-in Browser Commands",
"shortcuts.browser.channel_prev": "Back in history:\tAlt|Left",
"shortcuts.browser.channel_prev.mac": "Back in history:\t⌘|[",
"shortcuts.browser.channel_next": "Forward in history:\tAlt|Right",
"shortcuts.browser.channel_next.mac": "Forward in history:\t⌘|]",
"shortcuts.browser.font_increase": "Zoom in:\tCtrl|+",
"shortcuts.browser.font_increase.mac": "Zoom in:\t⌘|+",
"shortcuts.browser.font_decrease": "Zoom out:\tCtrl|-",
"shortcuts.browser.font_decrease.mac": "Zoom out:\t⌘|-",
"shortcuts.browser.input.header": "Works inside an input field",
"shortcuts.browser.highlight_prev": "Highlight text to the previous line:\tShift|Up",
"shortcuts.browser.highlight_next": "Highlight text to the next line:\tShift|Down",
"shortcuts.browser.newline": "Create a new line:\tShift|Enter",
"sidebar.channels": "PUBLIC CHANNELS",
"sidebar.createChannel": "Create new public channel",
"sidebar.createGroup": "Create new private channel",