From 9235e18cb70b547c6995ed44c1442bfdffef3b56 Mon Sep 17 00:00:00 2001
From: Niklas Mohrin <dev@niklasmohrin.de>
Date: Sun, 31 Oct 2021 17:57:16 +0100
Subject: [PATCH] Don't run our tabbing logic if `Ctrl` or `Alt` is pressed

---
 evap/static/ts/src/student-vote.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/evap/static/ts/src/student-vote.ts b/evap/static/ts/src/student-vote.ts
index 1a047cf41..f995fec80 100644
--- a/evap/static/ts/src/student-vote.ts
+++ b/evap/static/ts/src/student-vote.ts
@@ -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;
-- 
GitLab