onTabClick event locking tab when Alt key is used

The following simple onTabClick event script works as expected for Ctrl-Click and Shift_Click but the original tab is always locked after being duplicated by Alt-Click. Is this by design or a side effect of a setting?

function OnInit(initData)
	initData.name = "onTabClick";
	initData.version = "1.0";
	initData.copyright = "(c) 2018 Aussie";
//	initData.url = "https://resource.dopus.com/viewforum.php?f=35";
	initData.desc = "";
	initData.default_enable = true;
	initData.min_version = "12.9.2";

// Called when a tab is clicked with a qualifier key held down
function OnTabClick(tabClickData)
	var cmd = DOpus.Create.Command;
	var cmdstring;
	DOpus.output("tabClickData.qualifiers = " + tabClickData.qualifiers);
	if (tabClickData.qualifiers=="ctrl") cmdstring = "Go CURRENT NEWTAB=findexisting OPENINDUAL";
	else if (tabClickData.qualifiers=="shift") cmdstring = "Go CURRENT NEW";
	else if (tabClickData.qualifiers=="alt") cmdstring = "Go TABDUPLICATE";
	if (typeof cmdstring!="undefined"){
		DOpus.output("cmdstring = " + cmdstring);

You can return True from this event to prevent the default action, or False (which is the default) to allow it to proceed.

Thanks. Always pays to read the Help first! :blush: