@@ -205,7 +205,7 @@ function keyHandler(e) {
|
|||||||
case "Tab":
|
case "Tab":
|
||||||
var partElement = e.target.closest(".part");
|
var partElement = e.target.closest(".part");
|
||||||
var targetElement = e.shiftKey ? "previousElementSibling" : "nextElementSibling";
|
var targetElement = e.shiftKey ? "previousElementSibling" : "nextElementSibling";
|
||||||
if (partElement[targetElement] && e.target[targetElement].hasAttribute("tabindex")) {
|
if (partElement[targetElement] && partElement[targetElement].hasAttribute("tabindex")) {
|
||||||
partElement[targetElement].focus();
|
partElement[targetElement].focus();
|
||||||
} else {
|
} else {
|
||||||
document.querySelector(".part.search input[type=text]").focus();
|
document.querySelector(".part.search input[type=text]").focus();
|
||||||
|
Reference in New Issue
Block a user