diff --git a/HELP.md b/HELP.md index 6ea185b0..2a5ee741 100644 --- a/HELP.md +++ b/HELP.md @@ -194,7 +194,8 @@ Hot keys | `Ctrl + F3` | sort by name | `Ctrl + F5` | sort by date | `Ctrl + F6` | sort by size -| `Up`, `Down`, `Enter` | file system navigation +| `Up`, `Down` | file system navigation +| `Enter` | change directory/view file | `Alt + Left/Right` | show content of directory under cursor in target panel | `Alt + G` | go to directory | `Ctrl + \` | go to the root directory diff --git a/client/key/index.js b/client/key/index.js index 04785e51..eaec52e5 100644 --- a/client/key/index.js +++ b/client/key/index.js @@ -387,6 +387,8 @@ function KeyProto() { case Key.ENTER: if (Info.isDir) loadDir({path}); + else + CloudCmd.View.show(); break; case Key.BACKSPACE: diff --git a/client/listeners/index.js b/client/listeners/index.js index b9c54d97..ac6031be 100644 --- a/client/listeners/index.js +++ b/client/listeners/index.js @@ -274,6 +274,10 @@ function onDblClick(event) { path: path === '/' ? '/' : path + '/', }); + event.preventDefault(); + }else{ + CloudCmd.View.show(); + event.preventDefault(); } } @@ -282,17 +286,20 @@ function onTouch(event) { const current = getLIElement(event.target); const isDir = DOM.isCurrentIsDir(current); - if (!isDir) - return; + if (!isDir){ + + const isCurrent = DOM.isCurrentFile(current); + + if (!isCurrent) + return; + + CloudCmd.loadDir({ + path: DOM.getCurrentPath(current), + }); - const isCurrent = DOM.isCurrentFile(current); - - if (!isCurrent) - return; - - CloudCmd.loadDir({ - path: DOM.getCurrentPath(current), - }); + }else{ + CloudCmd.View.show(); + } } /*