diff --git a/NvimView/Sources/NvimView/NvimView+Key.swift b/NvimView/Sources/NvimView/NvimView+Key.swift index c11a606f..56f3b9d6 100644 --- a/NvimView/Sources/NvimView/NvimView+Key.swift +++ b/NvimView/Sources/NvimView/NvimView+Key.swift @@ -100,6 +100,12 @@ public extension NvimView { return true } + // 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.