# HG changeset patch # User bodqhrohro # Date 2016-05-13 16:53:01 # Node ID dcc73245714b7d5ac6710aa3058b19ec9cd1802c # Parent dd8d22d4c668208e87fb00796f27dbd05c79d5ab Fixed submitting form by hotkey in Chrome diff --git a/boards/static/js/form.js b/boards/static/js/form.js --- a/boards/static/js/form.js +++ b/boards/static/js/form.js @@ -23,7 +23,7 @@ var ITEM_FILE_SOURCE = 'fileSource'; var form = $('#form'); $('textarea').keypress(function(event) { - if (event.which == 13 && event.ctrlKey) { + if ((event.which == 10 || event.which == 13) && event.ctrlKey) { form.find('input[type=submit]').click(); } });