Double click tabs expands/contracts file manager

This commit is contained in:
mattpass
2021-02-15 16:30:52 +00:00
parent 12a53d4c29
commit 4a516e9828
14 changed files with 21 additions and 2 deletions

View File

@@ -3643,7 +3643,7 @@ var ICEcoder = {
get('mediaContainer').innerHTML =
'<iframe src="' +
this.iceLoc +
'/lib/help.php" id="helpIFrame" style="width: 840px; height: 485px"></iframe>';
'/lib/help.php" id="helpIFrame" style="width: 840px; height: 495px"></iframe>';
this.showHide('show', get('blackMask'));
},
@@ -4665,6 +4665,13 @@ var ICEcoder = {
}
},
// Focus/unfocus tab by contracting/expanding file manager
focusUnfocusTab: function() {
// Switch current lock state and change display of file manager
ICEcoder.lockUnlockNav();
this.changeFilesW(true === this.lockedNav ? 'expand' : 'contract');
},
// ==
// UI
// ==

View File

@@ -303,7 +303,7 @@ if (true === $havePrettier && true === file_exists(dirname(__FILE__) . "/plugins
<a nohref onClick="ICEcoder.alphaTabs()"><img src="<?php echo $iceURLPath;?>/assets/images/nav-alpha.png" class="alphaTabs" title="<?php echo $t['Alphabetize tabs'];?>"></a>
<?php
for ($i = 1; $i <= 100; $i++) {
echo '<div id="tab' . $i . '" class="tab" onmousedown="if (false === ICEcoder.overCloseLink) {ICEcoder.switchTab(parseInt(this.id.slice(3), 10)); ICEcoder.tabDragStart(parseInt(this.id.slice(3), 10))}; if (1 === event.button) {ICEcoder.closeTab(parseInt(this.id.slice(3), 10)); return false}; thisColor = ICEcoder.colorSelectedText;" onmouseover="thisColor = this.style.color; this.style.color = ICEcoder.colorSelectedText" onmouseout="this.style.color = thisColor"></div>';
echo '<div id="tab' . $i . '" class="tab" onmousedown="if (false === ICEcoder.overCloseLink) {ICEcoder.switchTab(parseInt(this.id.slice(3), 10)); ICEcoder.tabDragStart(parseInt(this.id.slice(3), 10))}; if (1 === event.button) {ICEcoder.closeTab(parseInt(this.id.slice(3), 10)); return false}; thisColor = ICEcoder.colorSelectedText;" onmouseover="thisColor = this.style.color; this.style.color = ICEcoder.colorSelectedText" onmouseout="this.style.color = thisColor" ondblclick="ICEcoder.focusUnfocusTab()"></div>';
}
?><div class="newTab" onClick="ICEcoder.newTab(false)" id="newTab">+</div>
</div>

View File

@@ -177,6 +177,7 @@ $text = [
"or" => "",
"Left click" => "左键单击",
"Middle click" => "中键单击",
"Double click" => "双击",
"Double click tap..." => "双击 / 点击 (移动端)",
"Right click" => "右键单击",
"Middle scrollwheel" => "中间滚轮滚动",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "",
"Left click" => "左鍵單擊",
"Middle click" => "中鍵單擊",
"Double click" => "雙擊",
"Double click tap..." => "雙擊 / 手指點擊 (移動端)",
"Right click" => "右鍵單擊",
"Middle scrollwheel" => "中間滾輪滾動",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "of",
"Left click" => "Linker muisklik",
"Middle click" => "Middelste muisklik",
"Double click" => "Dubbel klikken",
"Double click tap..." => "Dubbel klikken / tap (mobiele apparatuur)",
"Right click" => "Rechter muisklik",
"Middle scrollwheel" => "Midden scrollwiel",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "or",
"Left click" => "Left click",
"Middle click" => "Middle click",
"Double click" => "Double click",
"Double click tap..." => "Double click / tap (mobile)",
"Right click" => "Right click",
"Middle scrollwheel" => "Middle scrollwheel",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "ou",
"Left click" => "Clic gauche",
"Middle click" => "Clic du milieu",
"Double click" => "Double clic",
"Double click tap..." => "Double clic / touche (mobile)",
"Right click" => "Clic droit",
"Middle scrollwheel" => "Roulette du milieu",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "oder",
"Left click" => "Linksklick",
"Middle click" => "mittlerer Klick",
"Double click" => "Doppelklick",
"Double click tap..." => "Doppelklick / Tap (Mobile)",
"Right click" => "Rechtsklick",
"Middle scrollwheel" => "mittleres Mausrad",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "o",
"Left click" => "Click Sinistro",
"Middle click" => "Click centrale",
"Double click" => "Doppio click",
"Double click tap..." => "Doppio click / tap (mobile)",
"Right click" => "Click Destro",
"Middle scrollwheel" => "scrollwheel Medio",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "eller",
"Left click" => "Venstre klikk",
"Middle click" => "Middel klikk",
"Double click" => "Dobbel klikk",
"Double click tap..." => "Dobbel klikk / tap (mobil)",
"Right click" => "Høyre klikk",
"Middle scrollwheel" => "Middel rullehjul",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "یا",
"Left click" => "کلیک چپ",
"Middle click" => "کلیک وسط",
"Double click" => "تب ( موبایل )",
"Double click tap..." => "دبل کلیک / تب ( موبایل )",
"Right click" => "کلیک راست",
"Middle scrollwheel" => "اسکرولر وسط",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "ou",
"Left click" => "Clique esquerdo",
"Middle click" => "Clique Meio",
"Double click" => "Clique duplo",
"Double click tap..." => "Clique duplo / toque (mobile)",
"Right click" => "Clique direito",
"Middle scrollwheel" => "Meio scroll",

View File

@@ -176,6 +176,7 @@ $text = [
"or" => "o",
"Left click" => "Click izquierdo",
"Middle click" => "Click central",
"Double click" => "Doble click",
"Double click tap..." => "Doble click / tap (m&oacute;viles)",
"Right click" => "Click derecho",
"Middle scrollwheel" => "Rueda del rat&oacute;n",

View File

@@ -48,6 +48,7 @@ $t = $text['help'];
<h2><?php echo $t['On Tabs'];?></h2>
<span class="key"><?php echo $t['Middle click'];?></span> <span class="shortcut"><?php echo $t['Close tab'];?></span><br>
<span class="key"><?php echo $t['Double click'];?></span> <span class="shortcut"><?php echo $t['Contract expand file...'];?></span><br>
<span class="key"><?php echo $isMac ? "Cmd" : "Ctrl";?> <span class="plus">+</span> Backspace</span> <span class="shortcut"><?php echo $t['Jump to previous tab'];?></span><br><br>
</div>