don't preventDefault on shift | alt | ctrl press

This commit is contained in:
James Campos 2010-12-10 16:09:47 -08:00
parent 6700424c99
commit 24e8663ea2
2 changed files with 4 additions and 0 deletions

View File

@ -370,6 +370,7 @@ iframeLoad = ->
recaptchaReload()
imageClick = (e) ->
return if e.shiftKey or e.altKey or e.ctrlKey
e.preventDefault()
thumb = @firstChild
if thumb.className is 'hide'

View File

@ -475,6 +475,9 @@
};
imageClick = function(e) {
var thumb;
if (e.shiftKey || e.altKey || e.ctrlKey) {
return;
}
e.preventDefault();
thumb = this.firstChild;
if (thumb.className === 'hide') {