diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-10-07 22:19:26 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-10-07 22:23:42 +0300 |
commit | fcf99d0d09d63d0662290658ebc1e366bfc11bf0 (patch) | |
tree | 11a470e747bf091fd41fff543d3545486806ae29 /app | |
parent | f96c6c43c49c8c423f42a99ae27e02d47f04c748 (diff) |
Check originalEvent.repeat
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/behaviors/quick_submit.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/quick_submit.js.coffee b/app/assets/javascripts/behaviors/quick_submit.js.coffee index dc9bd4d94cc..0748eed763c 100644 --- a/app/assets/javascripts/behaviors/quick_submit.js.coffee +++ b/app/assets/javascripts/behaviors/quick_submit.js.coffee @@ -14,7 +14,7 @@ # </form> # $(document).on 'keydown.quick_submit', '.js-quick-submit', (e) -> - return if e.repeat + return if e.originalEvent.repeat return unless e.keyCode == 13 # Enter if navigator.userAgent.match(/Macintosh/) |