mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
vim: add x for exemption key
This commit is contained in:
parent
72bb72477e
commit
68dd95591d
@ -187,7 +187,8 @@ enable_backup_file=true
|
||||
; Skipped keys in Vim mode
|
||||
; c: Ctrl+C
|
||||
; v: Ctrl+V
|
||||
vim_exemption_keys=cv
|
||||
; x: Ctrl+X
|
||||
vim_exemption_keys=cvx
|
||||
|
||||
; Path of the flash page, related to the configuration folder
|
||||
; Could be absolute path
|
||||
|
@ -1628,6 +1628,12 @@ bool VVim::handleKeyPressEvent(int key, int modifiers, int *p_autoIndentPos)
|
||||
processCommand(m_tokens);
|
||||
setMode(VimMode::Normal);
|
||||
break;
|
||||
} else if (VUtils::isControlModifierForVim(modifiers)) {
|
||||
if (g_config->getVimExemptionKeys().contains('x')) {
|
||||
// Let it be handled outside.
|
||||
resetState();
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user