20a6111d2b
Added 'y' shortcut for copying a files immutable content hash link Updated CHANGELOG changed ! to not Moved CHANGELOG entry
10 lines
295 B
CoffeeScript
10 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
|