Commit bf543c99 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'using-a-or-m-hotkeys-on-issuable-tab' into 'master'

Clicks the edit button instead of opening the dropdown

Fixes #2307 

Instead of opening the menu, this clicks the `edit` button.

See merge request !2607
parents a9aa97b7 28aa7158
......@@ -5,11 +5,11 @@ class @ShortcutsIssuable extends ShortcutsNavigation
constructor: (isMergeRequest) ->
super()
Mousetrap.bind('a', ->
$('.js-assignee').select2('open')
$('.block.assignee .edit-link').trigger('click')
return false
)
Mousetrap.bind('m', ->
$('.js-milestone').select2('open')
$('.block.milestone .edit-link').trigger('click')
return false
)
Mousetrap.bind('r', =>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment