From: hickert Date: Tue, 25 Mar 2008 12:34:13 +0000 (+0000) Subject: Updated focus.js X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d184d4349eaefea3dd6e33f3013aef0468ca6e55;p=gosa.git 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 --- 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