Skip to content
Snippets Groups Projects
Unverified Commit 9235e18c authored by Niklas Mohrin's avatar Niklas Mohrin
Browse files

Don't run our tabbing logic if `Ctrl` or `Alt` is pressed

parent 26eac87c
Branches
No related tags found
No related merge requests found
......@@ -44,6 +44,10 @@ selectables[0].addEventListener("focus", () => {
});
studentForm.addEventListener("keydown", (e: KeyboardEvent) => {
if (e.ctrlKey || e.altKey) {
return;
}
const current = document.activeElement as HTMLElement;
if (!current.matches("input, label, span, textarea, button")) {
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment