mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
Merge b91b55017f into d33d11321f
This commit is contained in:
commit
d07fc15160
|
|
@ -687,6 +687,8 @@ the browser has the following hotkeys (always qwerty)
|
|||
* `ctrl-C` copy selected files/folders to clipboard
|
||||
* `ctrl-V` paste (move/copy)
|
||||
* `Y` download selected files
|
||||
* `N` upload file(s)
|
||||
* `shift-N` upload folder
|
||||
* `F2` [rename](#batch-rename) selected file/folder
|
||||
* when a file/folder is selected (in not-grid-view):
|
||||
* `Up/Down` move cursor
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ if (1)
|
|||
["ctrl-C", "copy selection to clipboard"],
|
||||
["ctrl-V", "paste (move/copy) here"],
|
||||
["Y", "download selected"],
|
||||
["N", "upload file(s)"],
|
||||
["ctrl-N", "upload folder"],
|
||||
["F2", "rename selected"],
|
||||
|
||||
"file-list-sel",
|
||||
|
|
@ -6365,6 +6367,12 @@ var ahotkeys = function (e) {
|
|||
return showfile.ppj(e) || true;
|
||||
}
|
||||
|
||||
if (kl == 'n' && sh)
|
||||
return up2k.up('dir')
|
||||
|
||||
if (kl == 'n')
|
||||
return up2k.up('file')
|
||||
|
||||
if (sh && kl != 'a' && kl != 'd')
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -796,7 +796,8 @@ function up2k_init(subtle) {
|
|||
"tact": Date.now(),
|
||||
"init_deps": init_deps,
|
||||
"set_fsearch": set_fsearch,
|
||||
"gotallfiles": [gotallfiles] // hooks
|
||||
"gotallfiles": [gotallfiles], // hooks
|
||||
"up": up,
|
||||
};
|
||||
|
||||
setTimeout(function () {
|
||||
|
|
@ -998,7 +999,7 @@ function up2k_init(subtle) {
|
|||
apply_flag_cfg();
|
||||
set_fsearch();
|
||||
|
||||
function nav() {
|
||||
function up(t) {
|
||||
start_actx();
|
||||
|
||||
var uf = function () { ebi('file' + fdom_ctr).click(); },
|
||||
|
|
@ -1013,9 +1014,11 @@ function up2k_init(subtle) {
|
|||
if (MOBILE)
|
||||
return uf();
|
||||
|
||||
modal.confirm(L.u_nav_m, uf, ud, null, L.u_nav_b);
|
||||
if (t == 'file') return uf();
|
||||
else if (t == 'dir') return ud();
|
||||
else modal.confirm(L.u_nav_m, uf, ud, null, L.u_nav_b);
|
||||
}
|
||||
ebi('u2btn').onclick = nav;
|
||||
ebi('u2btn').onclick = up;
|
||||
|
||||
var nenters = 0;
|
||||
function ondrag(e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue