allow opening tree nodes in a new tab

This commit is contained in:
ed 2021-06-30 01:08:20 +02:00
parent 05345ddf8b
commit 8b4b7fa794
3 changed files with 6 additions and 3 deletions

View file

@ -119,7 +119,7 @@ window.baguetteBox = (function () {
var gallery = [];
[].forEach.call(tagsNodeList, function (imageElement, imageIndex) {
var imageElementClickHandler = function (event) {
if (event && event.ctrlKey)
if (event && (event.ctrlKey || event.metaKey))
return true;
event.preventDefault ? event.preventDefault() : event.returnValue = false;

View file

@ -1545,7 +1545,7 @@ var thegrid = (function () {
setsz();
function gclick(e) {
if (e && e.ctrlKey)
if (e && (e.ctrlKey || e.metaKey))
return true;
var oth = ebi(this.getAttribute('ref')),
@ -2265,6 +2265,9 @@ var treectl = (function () {
}
function treego(e) {
if (e && (e.ctrlKey || e.metaKey))
return true;
ev(e);
if (this.getAttribute('class') == 'hl' &&
this.previousSibling.textContent == '-') {

View file

@ -32,7 +32,7 @@ catch (ex) {
}
catch (ex) { }
}
treectl.onscroll();
window['treectl'].onscroll(); // uhh
function up2k_flagbus() {