From d184d4349eaefea3dd6e33f3013aef0468ca6e55 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 25 Mar 2008 12:34:13 +0000 Subject: [PATCH] Updated focus.js -Allow to skip keyboard input filtering from within a template. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9971 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/include/focus.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gosa-core/html/include/focus.js b/gosa-core/html/include/focus.js index 129e61625..796798fb4 100644 --- a/gosa-core/html/include/focus.js +++ b/gosa-core/html/include/focus.js @@ -75,7 +75,15 @@ function acl_toggle_all(regex) } } + +var enable_keyPress = true; function keyPress(DnEvents) { + + /* We are forced to skip this Keyboard input filtering + * (enable_keyPress was set to false in the HTML content) + */ + if(!enable_keyPress) return; + // determines whether Netscape or Internet Explorer k = (netscape) ? DnEvents.keyCode : window.event.keyCode; if (k == 13) { // enter key pressed -- 2.30.2