mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-18 00:56:41 +10:00
Add "e" shortcut to edit issuable
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user