1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-25 06:06:21 +03:00

Merge pull request #499 from nhtzr/add-hidcur

Hide cursor on keydown
This commit is contained in:
Tae Won Ha 2017-08-08 18:00:33 +02:00 committed by GitHub
commit c86748eb25

View File

@ -9,6 +9,7 @@ extension NeoVimView {
override public func keyDown(with event: NSEvent) { override public func keyDown(with event: NSEvent) {
self.keyDownDone = false self.keyDownDone = false
NSCursor.setHiddenUntilMouseMoves(true)
let context = NSTextInputContext.current() let context = NSTextInputContext.current()
let cocoaHandledEvent = context?.handleEvent(event) ?? false let cocoaHandledEvent = context?.handleEvent(event) ?? false