mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 13:46:11 +10:00
Added 'y' shortcut for copying a files immutable content hash link Updated CHANGELOG changed ! to not Moved CHANGELOG entry
11 lines
295 B
CoffeeScript
11 lines
295 B
CoffeeScript
#= require shortcuts
|
|
|
|
class @ShortcutsBlob extends Shortcuts
|
|
constructor: (skipResetBindings) ->
|
|
super skipResetBindings
|
|
Mousetrap.bind('y', ShortcutsBlob.copyToClipboard)
|
|
|
|
@copyToClipboard: ->
|
|
clipboardButton = $('.btn-clipboard')
|
|
clipboardButton.click() if clipboardButton
|