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 <lrb2_@outlook.com>
This commit is contained in:
Lukas Bixen 2021-08-09 19:25:21 -05:00
parent ce9f1ecab0
commit 51a79fecc2

View File

@ -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;