1
1
mirror of https://github.com/qvacua/vimr.git synced 2025-01-06 05:05:35 +03:00
vimr/MacNeovim/Application.swift

26 lines
512 B
Swift
Raw Normal View History

2017-04-21 14:44:25 +03:00
/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
class Application: NSApplication {
override init() {
// Do very early initializtion here
// disable default press and hold behavior (copied from MacVim)
CFPreferencesSetAppValue(
"ApplePressAndHoldEnabled" as NSString,
"NO" as NSString,
kCFPreferencesCurrentApplication
)
super.init()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}