UX: Add g, t keyboard shortcut to modal window for go to top

https://meta.discourse.org/t/add-shortcut-g-t-to-go-to-top-page/19586
This commit is contained in:
cpradio 2014-09-04 18:28:03 -04:00
parent b8c36bd2da
commit 2ef499d021
2 changed files with 2 additions and 0 deletions
app/assets/javascripts/discourse/templates/modal
config/locales

View file

@ -9,6 +9,7 @@
<li>{{{i18n keyboard_shortcuts_help.jump_to.unread}}}</li>
<li>{{{i18n keyboard_shortcuts_help.jump_to.starred}}}</li>
<li>{{{i18n keyboard_shortcuts_help.jump_to.categories}}}</li>
<li>{{{i18n keyboard_shortcuts_help.jump_to.top}}}</li>
</ul>
<h4>{{i18n keyboard_shortcuts_help.navigation.title}}</h4>
<ul>

View file

@ -2064,6 +2064,7 @@ en:
unread: '<b>g</b>, <b>u</b> Unread'
starred: '<b>g</b>, <b>f</b> Starred'
categories: '<b>g</b>, <b>c</b> Categories'
top: '<b>g</b>, <b>t</b> Top'
navigation:
title: 'Navigation'
jump: '<b>#</b> Go to post number'