mirror of
https://github.com/vrana/adminer.git
synced 2025-08-28 16:49:57 +02:00
Firefox: Fix opening a database to the new browser's tab with Ctrl+click
This commit is contained in:
@@ -103,6 +103,13 @@ var dbPrevious = {};
|
|||||||
* @this HTMLSelectElement
|
* @this HTMLSelectElement
|
||||||
*/
|
*/
|
||||||
function dbMouseDown(event) {
|
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);
|
dbCtrl = isCtrl(event);
|
||||||
if (dbPrevious[this.name] == undefined) {
|
if (dbPrevious[this.name] == undefined) {
|
||||||
dbPrevious[this.name] = this.value;
|
dbPrevious[this.name] = this.value;
|
||||||
|
Reference in New Issue
Block a user