From 8ac486a57c0084653c66f92e59c52b12915f9de9 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Sun, 6 Oct 2024 00:42:33 +0200 Subject: [PATCH] Firefox: Fix opening a database to the new browser's tab with Ctrl+click --- adminer/static/editing.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/adminer/static/editing.js b/adminer/static/editing.js index a3e61eaa..54ae65c3 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -103,6 +103,11 @@ var dbPrevious = {}; * @this HTMLSelectElement */ function dbMouseDown(event) { + // Firefox: mouse-down event does not contain pressed key information for OPTION. + // Chrome: mouse-down event has inherited key information from SELECT. + // So we ignore the event for OPTION to work Ctrl+click correctly everywhere. + if (event.target.tagName === "OPTION") return; + dbCtrl = isCtrl(event); if (dbPrevious[this.name] === undefined) { dbPrevious[this.name] = this.value;