mirror of
https://github.com/qvacua/vimr.git
synced 2025-01-03 19:37:56 +03:00
27 lines
513 B
Swift
27 lines
513 B
Swift
|
/**
|
||
|
* Tae Won Ha - http://taewon.de - @hataewon
|
||
|
* See LICENSE
|
||
|
*/
|
||
|
|
||
|
import Cocoa
|
||
|
|
||
|
class Application: NSApplication {
|
||
|
|
||
|
override init() {
|
||
|
super.init()
|
||
|
|
||
|
// Do very early initializtion here
|
||
|
|
||
|
// disable default press and hold behavior (copied from MacVim)
|
||
|
CFPreferencesSetAppValue(
|
||
|
"ApplePressAndHoldEnabled" as NSString,
|
||
|
"NO" as NSString,
|
||
|
kCFPreferencesCurrentApplication
|
||
|
)
|
||
|
}
|
||
|
|
||
|
required init?(coder: NSCoder) {
|
||
|
fatalError("init(coder:) has not been implemented")
|
||
|
}
|
||
|
}
|