From 08f78601e6ade7cddf73ae9ccbfba6311fc8caa3 Mon Sep 17 00:00:00 2001 From: Nishiki Liu Date: Wed, 9 Dec 2020 21:19:47 -0800 Subject: [PATCH] Update ProTip copy to be dynamic --- assets/javascripts/templates/tip_tmpl.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/templates/tip_tmpl.coffee b/assets/javascripts/templates/tip_tmpl.coffee index 9436497e..227ebf5d 100644 --- a/assets/javascripts/templates/tip_tmpl.coffee +++ b/assets/javascripts/templates/tip_tmpl.coffee @@ -1,10 +1,10 @@ -app.templates.tipKeyNav = """ +app.templates.tipKeyNav = () -> """

ProTip (click to dismiss)

- Hit to navigate the sidebar.
- Hit space / shift space, alt ↓/↑ or shift ↓/↑ to scroll the page. + Hit #{if app.settings.cache.arrowScroll then 'shift +' else ''} to navigate the sidebar.
+ Hit space / shift space#{if app.settings.cache.arrowScroll then ' or ↓/↑' else ', alt ↓/↑ or shift ↓/↑'} to scroll the page.

See all keyboard shortcuts """