mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-29 16:56:40 +03:00
use .command
instead of NSCommandKeyMask
This commit is contained in:
parent
911e860d36
commit
a1f827a4d8
@ -140,7 +140,7 @@ extension AppDelegate {
|
|||||||
let discardAndQuitButton = alert.addButton(withTitle: "Discard and Quit")
|
let discardAndQuitButton = alert.addButton(withTitle: "Discard and Quit")
|
||||||
alert.messageText = "There are windows with unsaved buffers!"
|
alert.messageText = "There are windows with unsaved buffers!"
|
||||||
alert.alertStyle = .warning
|
alert.alertStyle = .warning
|
||||||
discardAndQuitButton.keyEquivalentModifierMask = NSCommandKeyMask
|
discardAndQuitButton.keyEquivalentModifierMask = .command
|
||||||
discardAndQuitButton.keyEquivalent = "d"
|
discardAndQuitButton.keyEquivalent = "d"
|
||||||
|
|
||||||
if alert.runModal() == NSAlertSecondButtonReturn {
|
if alert.runModal() == NSAlertSecondButtonReturn {
|
||||||
|
Loading…
Reference in New Issue
Block a user