mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(edit-file-vim) Shift + Esc: task manager
This commit is contained in:
parent
e3470dcad9
commit
f17d5b149a
1 changed files with 9 additions and 2 deletions
|
|
@ -37,9 +37,16 @@ CloudCmd.EditFileVim = function EditFileVimProto(callback) {
|
|||
CloudCmd.Edit.hide();
|
||||
};
|
||||
|
||||
function listener({keyCode, shiftKey}) {
|
||||
if (shiftKey && keyCode === Key.ESC)
|
||||
function listener(event) {
|
||||
const {
|
||||
keyCode,
|
||||
shiftKey,
|
||||
} = event;
|
||||
|
||||
if (shiftKey && keyCode === Key.ESC) {
|
||||
event.preventDefault();
|
||||
EditFileVim.hide();
|
||||
}
|
||||
}
|
||||
|
||||
init(callback);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue