From 2ae4d14bc585dc1810a6ff14faa0319f393142ec Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 21 Dec 2020 08:00:47 +0100 Subject: [PATCH] Focus special handling of Shift+Tab on macOS --- qt/aqt/data/web/js/editor.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/qt/aqt/data/web/js/editor.ts b/qt/aqt/data/web/js/editor.ts index aafc63efb..753a9fc7d 100644 --- a/qt/aqt/data/web/js/editor.ts +++ b/qt/aqt/data/web/js/editor.ts @@ -54,12 +54,6 @@ function onKey(evt: KeyboardEvent) { currentField.blur(); return; } - // shift+tab goes to previous field - if (navigator.platform === "MacIntel" && evt.which === 9 && evt.shiftKey) { - evt.preventDefault(); - focusPrevious(); - return; - } // fix Ctrl+right/left handling in RTL fields if (currentField.dir === "rtl") { @@ -206,16 +200,6 @@ function focusField(n) { $("#f" + n).focus(); } -function focusPrevious() { - if (!currentField) { - return; - } - const previous = currentFieldOrdinal() - 1; - if (previous >= 0) { - focusField(previous); - } -} - function focusIfField(x, y) { const elements = document.elementsFromPoint(x, y); for (let i = 0; i < elements.length; i++) {