mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-17 16:38:18 +00:00
feature: cloudcmd: vim: ESC: use only to enable, do not use to disable
This commit is contained in:
parent
785c32e2e3
commit
54b56fdc38
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ const Chars = fullstore();
|
|||
const toggleVim = (keyCode, overrides = {}) => {
|
||||
const {_config, config} = overrides;
|
||||
|
||||
if (keyCode === KEY.ESC)
|
||||
_config('vim', !config('vim'));
|
||||
if (!config('vim') && keyCode === KEY.ESC)
|
||||
_config('vim', true);
|
||||
};
|
||||
|
||||
const isUndefined = (a) => typeof a === 'undefined';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue