1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00

Hide cursor on keydown

This commit is contained in:
Ezequiel Rosas 2017-08-02 16:05:39 -05:00
parent 0138899e40
commit 7c612266b9

View File

@ -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)