Last active
June 20, 2021 01:08
-
-
Save tablacus/1cf14bbf97c9744bfc58865127a7a744 to your computer and use it in GitHub Desktop.
Focus Tree view from Inner Address bar - Tablacus Explorer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("keydown", function (ev) { | |
if (ev.keyCode == VK_TAB) { | |
const res = /inneraddressbar_(\d+)/i.exec((ev.target || ev.srcElement).id); | |
if (res) { | |
setTimeout(async function () { | |
const FV = te.Ctrl(CTRL_TC, res[1]).Selected; | |
FV.Focus(); | |
FV.TreeView.Focus(); | |
}, 99); | |
if (ev.preventDefault) { | |
ev.preventDefault(); | |
} else { | |
ev.returnValue = false; | |
} | |
return false; | |
} | |
} | |
}); |
Author
tablacus
commented
Jun 20, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment