From: Peter Knut Date: Sat, 5 Oct 2024 22:42:33 +0000 (+0200) Subject: Firefox: Fix opening a database to the new browser's tab with Ctrl+click X-Git-Tag: v4.16.0~79 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=d9976c25fcb853dae544b905f54ebaba71b8442c;p=adminer.git Firefox: Fix opening a database to the new browser's tab with Ctrl+click --- diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 4395bba6..99007904 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -103,6 +103,13 @@ 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;