Add "e" shortcut to edit issuable
This commit is contained in:
parent
1142b327e8
commit
8129d1675f
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@ class @ShortcutsIssuable extends ShortcutsNavigation
|
|||
@nextIssue()
|
||||
return false
|
||||
)
|
||||
Mousetrap.bind('e', =>
|
||||
@editIssue()
|
||||
return false
|
||||
)
|
||||
|
||||
|
||||
if isMergeRequest
|
||||
|
@ -63,3 +67,7 @@ class @ShortcutsIssuable extends ShortcutsNavigation
|
|||
|
||||
# Focus the input field
|
||||
replyField.focus()
|
||||
|
||||
editIssue: ->
|
||||
$editBtn = $('.issuable-edit')
|
||||
Turbolinks.visit($editBtn.attr('href'))
|
||||
|
|
Loading…
Reference in a new issue