summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-05-10 21:10:46 +0000
committerJacob Schatz <jschatz@gitlab.com>2016-05-10 21:10:46 +0000
commitf7d2297c86eb84c2e2fbfa6b3e007da3c7adb5ae (patch)
treed77d3d003c1b480512b7eb73487c32a7414f2a94
parent971662e6a4039af98ac02f3f5f25804ba3d5da8f (diff)
parent17d23283a119fcfc2f6ac070bb5df8d913abf2e7 (diff)
downloadgitlab-ce-f7d2297c86eb84c2e2fbfa6b3e007da3c7adb5ae.tar.gz
Merge branch 'fix-r-shortcut' into 'master'
Restore "r" shortcut Fixes "Reply with Selected Text" shortcut See merge request !4041
-rw-r--r--app/assets/javascripts/shortcuts_issuable.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/shortcuts_issuable.coffee b/app/assets/javascripts/shortcuts_issuable.coffee
index ad9b3c1c6bf..ccb42ab2168 100644
--- a/app/assets/javascripts/shortcuts_issuable.coffee
+++ b/app/assets/javascripts/shortcuts_issuable.coffee
@@ -6,6 +6,10 @@ class @ShortcutsIssuable extends ShortcutsNavigation
super()
Mousetrap.bind('a', @openSidebarDropdown.bind(@, 'assignee'))
Mousetrap.bind('m', @openSidebarDropdown.bind(@, 'milestone'))
+ Mousetrap.bind('r', =>
+ @replyWithSelectedText()
+ return false
+ )
Mousetrap.bind('j', =>
@prevIssue()
return false