# HG changeset patch # User neko259 # Date 2016-05-13 17:20:01 # Node ID 8fb1b3b10653148b19a68adb61c7be5c08d87fee # Parent e6e99b89a28ce017c782fb9b21b9b02e96ab76c8 # Parent b47850ce08d5f8cfecc7b8649c44a4f27de36dd8 Merged with BB 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(); } });