# HG changeset patch # User matthew@heavyhorse.vm.bytemark.co.uk # Date 1270742462 -3600 # Node ID 7f893f429760dab722275d2f3fcada0c04af0c2a # Parent 53bfdcb686f7fa1d1039cd31740c8d1ceb459891 Suppress enter key press so it doesn't reach the textbox diff -r 53bfdcb686f7 -r 7f893f429760 support-chat/js/supportchat.js --- a/support-chat/js/supportchat.js Thu Apr 08 16:41:23 2010 +0100 +++ b/support-chat/js/supportchat.js Thu Apr 08 17:01:02 2010 +0100 @@ -221,7 +221,10 @@ $("#support-question-submit").click(on_question_submit); $("#support-input").keypress(function (event) { if(event.keyCode == 13) + { + event.preventDefault(); $("#support-send-button").click(); + } }); $("#support-offline-submit-button").click(function () {