Skip to content

Commit 2b3dc15

Browse files
committed
feature: cloudcmd: Ctrl + L: logout
1 parent 48693d9 commit 2b3dc15

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/docker-io.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Docker IO
22
on:
3-
- push
3+
- push
44
jobs:
55
buildx:
66
runs-on: ubuntu-latest

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
@@ -442,6 +442,14 @@ async function _switchKey(event) {
442442

443443
break;
444444

445+
case KEY.L:
446+
if (ctrlMeta) {
447+
CloudCmd.logOut();
448+
event.preventDefault();
449+
}
450+
451+
break;
452+
445453
case KEY.M:
446454
if (ctrlMeta) {
447455
if (config('vim'))

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)