mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 17:29:27 +00:00
feature(sort) add hot keys
- <Ctrl> + <F3> - sort by name - <Ctrl> + <F5> - sort by date - <Ctrl> + <F6> - sort by size
This commit is contained in:
parent
61eba36c67
commit
04a63da6ab
2 changed files with 15 additions and 2 deletions
|
|
@ -288,6 +288,8 @@ var CloudCmd, Util, DOM;
|
|||
case Key.F3:
|
||||
if (shift)
|
||||
CloudCmd.Markdown.show(path);
|
||||
else if (ctrlMeta)
|
||||
CloudCmd.sortPanel('name');
|
||||
else
|
||||
CloudCmd.View.show();
|
||||
|
||||
|
|
@ -300,12 +302,20 @@ var CloudCmd, Util, DOM;
|
|||
break;
|
||||
|
||||
case Key.F5:
|
||||
Operation.show('copy');
|
||||
if (ctrlMeta)
|
||||
CloudCmd.sortPanel('date');
|
||||
else
|
||||
Operation.show('copy');
|
||||
|
||||
event.preventDefault();
|
||||
break;
|
||||
|
||||
case Key.F6:
|
||||
Operation.show('move');
|
||||
if (ctrlMeta)
|
||||
CloudCmd.sortPanel('size');
|
||||
else
|
||||
Operation.show('move');
|
||||
|
||||
event.preventDefault();
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue