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

Merge pull request #876 from imkerberos/fix-cmd-dot-keydown

Fix <Cmd + .> don't trigger keydown event.
This commit is contained in:
Tae Won Ha 2022-01-01 12:00:55 +01:00 committed by GitHub
commit 07c775082c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,6 +113,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.