Merge pull request #2704 from cpradio/master
Add shortcuts for Profile Menu and Hamburger Menu
This commit is contained in:
commit
66f9f5773d
|
@ -35,7 +35,9 @@ Discourse.KeyboardShortcuts = Ember.Object.createWithMixins({
|
|||
'm r': 'div.notification-options li[data-id="1"] a', // mark topic as regular
|
||||
'm t': 'div.notification-options li[data-id="2"] a', // mark topic as tracking
|
||||
'm w': 'div.notification-options li[data-id="3"] a', // mark topic as watching
|
||||
'n': '#user-notifications', // open notifictions menu
|
||||
'n': '#user-notifications', // open notifications menu
|
||||
'=': '#site-map', // open site map menu
|
||||
'p': '#current-user', // open current user menu
|
||||
'o,enter': '.topic-list tr.selected a.title', // open selected topic
|
||||
'shift+r': '#topic-footer-buttons button.create', // reply to topic
|
||||
'shift+s': '#topic-footer-buttons button.share', // share topic
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
<ul>
|
||||
<li>{{{i18n keyboard_shortcuts_help.application.create}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.application.notifications}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.application.site_map_menu}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.application.user_profile_menu}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.application.search}}}</li>
|
||||
<li>{{{i18n keyboard_shortcuts_help.application.help}}}</li>
|
||||
</ul>
|
||||
|
|
|
@ -2052,6 +2052,8 @@ en:
|
|||
title: 'Application'
|
||||
create: '<b>c</b> Create a new topic'
|
||||
notifications: '<b>n</b> Open notifications'
|
||||
site_map_menu: '<b>=</b> Open site map menu'
|
||||
user_profile_menu: '<b>p</b> Open user profile menu'
|
||||
search: '<b>/</b> Search'
|
||||
help: '<b>?</b> Open keyboard shortcuts help'
|
||||
actions:
|
||||
|
|
Loading…
Reference in New Issue