Add quit button
This commit is contained in:
@@ -5,17 +5,32 @@ $(document).keydown(function(event){
|
|||||||
return // prevent custom shortcuts from interfering with system shortcuts
|
return // prevent custom shortcuts from interfering with system shortcuts
|
||||||
}
|
}
|
||||||
|
|
||||||
if(event.which === 65 || event.which === 37){ // A or left arrow key go to previous file
|
switch (event.which) {
|
||||||
|
case 65: // A or left arrow key go to previous file
|
||||||
|
case 37:
|
||||||
ListNavigator.previousItem();
|
ListNavigator.previousItem();
|
||||||
}else if(event.which === 68 || event.which === 39){ // D or right arrow key go to next file
|
break;
|
||||||
|
case 68: // D or right arrow key go to next file
|
||||||
|
case 39:
|
||||||
ListNavigator.nextItem();
|
ListNavigator.nextItem();
|
||||||
}else if(event.shiftKey && event.which === 83){ // SHIFT + S downloads all files in list
|
case 83:
|
||||||
Toolbar.downloadList();
|
if (event.shiftKey) {
|
||||||
}else if(event.which === 83){ // S key downloads only selected file
|
Toolbar.downloadList(); // SHIFT + S downloads all files in list
|
||||||
Toolbar.download();
|
} else {
|
||||||
}else if(event.which === 67){ // C to copy to clipboard
|
Toolbar.download(); // S to download the current file
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 82: // R to toggle list shuffle
|
||||||
|
ListNavigator.toggleShuffle();
|
||||||
|
break;
|
||||||
|
case 67: // C to copy to clipboard
|
||||||
Toolbar.copyUrl();
|
Toolbar.copyUrl();
|
||||||
}else if(event.which === 73){ // I to open info window
|
break;
|
||||||
|
case 73: // I to open the details window
|
||||||
DetailsWindow.toggle();
|
DetailsWindow.toggle();
|
||||||
|
break;
|
||||||
|
case 81: // Q to close the window
|
||||||
|
window.close();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -130,8 +130,9 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr><td colspan="2">File Shortcuts</td></tr>
|
<tr><td colspan="2">File Shortcuts</td></tr>
|
||||||
<tr><td>c</td><td> = Copy URL of this page</td></tr>
|
<tr><td>c</td><td> = Copy URL of this page</td></tr>
|
||||||
<tr><td>i</td><td> = Toggle details window (this window)</td></tr>
|
<tr><td>i</td><td> = Toggle details window (this window) (<b><u>i</u></b>nfo)</td></tr>
|
||||||
<tr><td>s</td><td> = Download the file you are currently viewing</td></tr>
|
<tr><td>s</td><td> = Download the file you are currently viewing (<b><u>s</u></b>ave)</td></tr>
|
||||||
|
<tr><td>q</td><td> = Close the window (<b><u>q</u></b>uit)</td></tr>
|
||||||
<tr><td colspan="2">List Shortcuts</td></tr>
|
<tr><td colspan="2">List Shortcuts</td></tr>
|
||||||
<tr><td>a or ←</td><td> = View previous item in list</td></tr>
|
<tr><td>a or ←</td><td> = View previous item in list</td></tr>
|
||||||
<tr><td>d or →</td><td> = View next item in list</td></tr>
|
<tr><td>d or →</td><td> = View next item in list</td></tr>
|
||||||
|
Reference in New Issue
Block a user