From a896a16cfa7664cf4cc794cef46b203397e75655 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Jul 2010 08:58:03 +0000 Subject: [PATCH] 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 --- gosa-core/html/include/gosa.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2