From: hickert Date: Wed, 14 Jul 2010 08:58:03 +0000 (+0000) Subject: Do not focus next field while pressing 'Enter'whithin a textarea . X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a896a16cfa7664cf4cc794cef46b203397e75655;p=gosa.git Do not focus next field while pressing 'Enter'whithin a textarea . git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19010 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/include/gosa.js b/gosa-core/html/include/gosa.js index 25098d805..e79eac34d 100644 --- a/gosa-core/html/include/gosa.js +++ b/gosa-core/html/include/gosa.js @@ -101,7 +101,7 @@ function keyHandler(DnEvents) { // determines whether Netscape or Internet Explorer k = (Prototype.Browser.Gecko) ? DnEvents.keyCode : window.event.keyCode; - if (k == 13) { // enter key pressed + if (k == 13 && element.type!='textarea') { // enter key pressed // Stop 'Enter' key-press from beeing processed internally Event.stop(DnEvents);