diff --git a/assets/javascripts/app/shortcuts.coffee b/assets/javascripts/app/shortcuts.coffee index 5bc24806..5755a71d 100644 --- a/assets/javascripts/app/shortcuts.coffee +++ b/assets/javascripts/app/shortcuts.coffee @@ -149,6 +149,9 @@ class app.Shortcuts when 40 @trigger 'altDown' false + when 68 + @trigger 'altD' + false when 70 @trigger 'altF', event when 71 diff --git a/assets/javascripts/templates/pages/help_tmpl.coffee b/assets/javascripts/templates/pages/help_tmpl.coffee index 3997528d..9fb4ed48 100644 --- a/assets/javascripts/templates/pages/help_tmpl.coffee +++ b/assets/javascripts/templates/pages/help_tmpl.coffee @@ -131,6 +131,9 @@ app.templates.helpPage = ->
alt + s
alt + d
+
Tip: If the cursor is no longer in the search field, press /
or
diff --git a/assets/javascripts/views/search/search.coffee b/assets/javascripts/views/search/search.coffee
index b6c83e1a..8fab885c 100644
--- a/assets/javascripts/views/search/search.coffee
+++ b/assets/javascripts/views/search/search.coffee
@@ -17,6 +17,7 @@ class app.views.Search extends app.View
typing: 'focus'
altG: 'google'
altS: 'stackoverflow'
+ altD: 'duckduckgo'
@routes:
after: 'afterRoute'
@@ -113,6 +114,10 @@ class app.views.Search extends app.View
@externalSearch "https://stackoverflow.com/search?q="
return
+ duckduckgo: =>
+ @externalSearch "https://duckduckgo.com/?t=devdocs&q="
+ return
+
onResults: (results) =>
@hasResults = true if results.length
@trigger 'results', results, @flags