Menu hotkeys system implementation.
[fa-stable.git] / js / utils.js
index 761917a2d0f9e17cd5a6a143f74ec2c523c07225..b2fc71c4b5bb83f1acb0c065d57b3684228eb638 100644 (file)
@@ -183,7 +183,11 @@ function goBack() {
 }
 
 function setFocus(name, byId) {
-
+  if(document.location.pathname.indexOf('index.php') != -1) {
+       // this is application menu page - set focus on first link
+       // var el = document.getElementById('msgbox');
+       // TODO find first link after msgbox and set focus
+  }
   if(!name) {
        if (_focus)     
                name = _focus;  // last focus set in onfocus handlers