diff --git a/NvimView/NvimView/NvimView+Key.swift b/NvimView/NvimView/NvimView+Key.swift index 373f655b..b6a4b2cc 100644 --- a/NvimView/NvimView/NvimView+Key.swift +++ b/NvimView/NvimView/NvimView+Key.swift @@ -81,16 +81,19 @@ extension NvimView { if .keyDown != event.type { return false } let flags = event.modifierFlags.intersection(.deviceIndependentFlagsMask) - /* & do not trigger keyDown events. - Catch the key event here and pass it to keyDown. - (By rogual in NeoVim dot app - https://github.com/rogual/neovim-dot-app/pull/248/files ) - */ + // & do not trigger keyDown events. + // Catch the key event here and pass it to keyDown. + // (By rogual in NeoVim dot app: https://github.com/rogual/neovim-dot-app/pull/248/files) if flags.contains(.control) && 48 == event.keyCode { self.keyDown(with: event) return true } + // Emoji menu: Cmd-Ctrl-Space + if flags.contains([.command, .control]) && 49 == event.keyCode { + return false + } + guard let chars = event.characters else { return false; } @@ -114,7 +117,7 @@ extension NvimView { self.uiBridge.vimInput(self.wrapNamedKeys("Nul")) return true } - // NsEvent already sets \u{1f} for && + // NSEvent already sets \u{1f} for && return false }