Skip to content

Commit 846fc03

Browse files
committed
feature: cloudcmd: Ctrl + L: logout
1 parent 48693d9 commit 846fc03

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

HELP.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ Then, start the server again with `cloudcmd` and reload the page.
186186
| `Ctrl + R` | refresh
187187
| `Ctrl + D` | clear local storage
188188
| `Ctrl + A` | select all files in a panel
189+
| `Ctrl + L` | logout
189190
| `Ctrl + M` | [rename selected files](https://github.com/coderaiser/cloudcmd/releases/tag/v12.1.0) in editor
190191
| `Ctrl + U` | swap panels
191192
| `Ctrl + F3` | sort by name

client/key/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,14 @@ async function _switchKey(event) {
441441
}
442442

443443
break;
444+
445+
case KEY.L:
446+
if (ctrlMeta) {
447+
CloudCmd.logOut();
448+
event.preventDefault();
449+
}
450+
451+
break;
444452

445453
case KEY.M:
446454
if (ctrlMeta) {

client/key/key.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const D = 68;
2222
export const G = 71;
2323
export const J = 74;
2424
export const K = 75;
25+
export const L = 76;
2526
export const M = 77;
2627
export const O = 79;
2728
export const P = 80;

0 commit comments

Comments
 (0)