From 51a79fecc2cf48e1e88a52e6c205115384483e70 Mon Sep 17 00:00:00 2001 From: Lukas Bixen Date: Mon, 9 Aug 2021 19:25:21 -0500 Subject: [PATCH] Fix #15225: command+click opens in same tab: Add metaKey (Command key on Mac or Windows key) to modifier keys that prevent using Ajax Signed-off-by: Lukas Bixen --- js/src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/ajax.js b/js/src/ajax.js index 2a9697704f..d097936076 100644 --- a/js/src/ajax.js +++ b/js/src/ajax.js @@ -233,7 +233,7 @@ var AJAX = { // leave the browser deal with it natively (e.g: file download) // or leave an existing ajax event handler present elsewhere deal with it var href = $(this).attr('href'); - if (typeof event !== 'undefined' && (event.shiftKey || event.ctrlKey)) { + if (typeof event !== 'undefined' && (event.shiftKey || event.ctrlKey || event.metaKey)) { return true; } else if ($(this).attr('target')) { return true;