diff --git a/assets/javascripts/app/shortcuts.coffee b/assets/javascripts/app/shortcuts.coffee index 47af04c6..12656620 100644 --- a/assets/javascripts/app/shortcuts.coffee +++ b/assets/javascripts/app/shortcuts.coffee @@ -99,9 +99,18 @@ class app.Shortcuts @trigger 'typing' return - if event.which is 32 - @trigger 'pageUp' - false + switch event.which + when 32 + @trigger 'pageUp' + false + when 38 + unless getSelection()?.toString() + @trigger 'altUp' + false + when 40 + unless getSelection()?.toString() + @trigger 'altDown' + false handleKeydownAltEvent: (event) -> switch event.which diff --git a/assets/javascripts/templates/pages/help_tmpl.coffee b/assets/javascripts/templates/pages/help_tmpl.coffee index 552643a5..62458520 100644 --- a/assets/javascripts/templates/pages/help_tmpl.coffee +++ b/assets/javascripts/templates/pages/help_tmpl.coffee @@ -66,7 +66,10 @@ app.templates.helpPage = """
alt + ↓
alt + ↑
- shift + ↓
+ shift + ↑
+ space
shift + space
diff --git a/assets/javascripts/templates/tip_tmpl.coffee b/assets/javascripts/templates/tip_tmpl.coffee
index 4c7675bc..9436497e 100644
--- a/assets/javascripts/templates/tip_tmpl.coffee
+++ b/assets/javascripts/templates/tip_tmpl.coffee
@@ -4,7 +4,7 @@ app.templates.tipKeyNav = """
(click to dismiss)
Hit ↓
↑
←
→
to navigate the sidebar.
- Hit alt ↓
alt ↑
or space
shift space
to scroll the page.
+ Hit space / shift space
, alt ↓/↑
or shift ↓/↑
to scroll the page.
See all keyboard shortcuts """ diff --git a/assets/stylesheets/components/_content.scss b/assets/stylesheets/components/_content.scss index fc9159a7..3fc014aa 100644 --- a/assets/stylesheets/components/_content.scss +++ b/assets/stylesheets/components/_content.scss @@ -360,7 +360,7 @@ ._shortcuts-dt { float: left; clear: left; - margin: 0; + margin: 0 0 .75rem; width: 16rem; max-width: 40%; font-weight: normal;