1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00

Fix <Cmd + .> don't trigger keydown event.

This commit is contained in:
Kerberos 2021-11-09 11:20:32 +08:00
parent 463b3af7e2
commit f50882e59a

View File

@ -100,6 +100,12 @@ public extension NvimView {
return true
}
// <D-.> do not trigger keyDown event.
if flags.contains(.command), event.keyCode == 47 {
self.keyDown(with: event)
return true
}
guard let chars = event.characters else { return false }
// Control code \0 causes rpc parsing problems.