Allow enter key to open file dialog once

This commit is contained in:
seaweedchan 2013-08-25 01:17:30 -07:00
parent 6598b5a45e
commit 128ff46440

View File

@ -497,7 +497,7 @@ QR =
post.setFile file
openFileInput: (e) ->
return if e.keyCode and e.keyCode isnt 32
return if e.keyCode and not [32, 13].contains e.keyCode
e.stopPropagation()
if e.shiftKey and e.type is 'click'
return QR.selected.rmFile()