Events: Quick fix for access the focusable element

refs #7976
This commit is contained in:
Marius Hein 2015-02-23 16:06:21 +01:00
parent 316582c0d3
commit 44019f4e67
1 changed files with 10 additions and 0 deletions

View File

@ -337,6 +337,15 @@
handleAnchor: function(query) {
var $element = $(query);
if ($element.length > 0) {
// TODO(mh): Some elements are missing to place the right focus
// This is a fixed workarround until all header took place
var $item = $element.find(':header:first').nextUntil(':header:first').next();
if ($item.length > 0) {
$element = $item;
}
/*
var focusQueries = ['h1:first', ':header:first', ':input:first'];
$.each(focusQueries, function(index,q) {
var $item = $element.find(q);
@ -345,6 +354,7 @@
return false;
}
});
*/
// If we want to focus an element which has no tabindex
// add one that we can focus is