From 7c612266b9402afd0b9faf1ce7d6b61f92817af7 Mon Sep 17 00:00:00 2001 From: Ezequiel Rosas Date: Wed, 2 Aug 2017 16:05:39 -0500 Subject: [PATCH] Hide cursor on keydown --- SwiftNeoVim/NeoVimView+Key.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SwiftNeoVim/NeoVimView+Key.swift b/SwiftNeoVim/NeoVimView+Key.swift index e9b28069..8cbe8f94 100644 --- a/SwiftNeoVim/NeoVimView+Key.swift +++ b/SwiftNeoVim/NeoVimView+Key.swift @@ -9,6 +9,7 @@ extension NeoVimView { override public func keyDown(with event: NSEvent) { self.keyDownDone = false + NSCursor.setHiddenUntilMouseMoves(true) let context = NSTextInputContext.current()! let cocoaHandledEvent = context.handleEvent(event)