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:
coderaiser 2017-02-06 16:03:58 +02:00
parent 61eba36c67
commit 04a63da6ab
2 changed files with 15 additions and 2 deletions

View file

@ -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;