1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-29 03:53:38 +03:00

Give Priority to NamedKeys

This commit is contained in:
Ezequiel Rosas 2017-08-02 14:20:02 -05:00
parent 3a91b3a3fb
commit 38840c5c58

View File

@ -29,7 +29,7 @@ extension NeoVimView {
let flags = self.vimModifierFlags(modifierFlags) ?? "" let flags = self.vimModifierFlags(modifierFlags) ?? ""
let isNamedKey = KeyUtils.isSpecial(key: charsIgnoringModifiers) let isNamedKey = KeyUtils.isSpecial(key: charsIgnoringModifiers)
let isControlCode = KeyUtils.isControlCode(key: chars) let isControlCode = KeyUtils.isControlCode(key: chars) && !isNamedKey
let isPlain = flags.isEmpty && !isNamedKey let isPlain = flags.isEmpty && !isNamedKey
let isWrapNeeded = !isControlCode && !isPlain let isWrapNeeded = !isControlCode && !isPlain