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

use .command instead of NSCommandKeyMask

This commit is contained in:
Neal Clark 2017-10-06 09:33:51 -07:00
parent 911e860d36
commit a1f827a4d8

View File

@ -140,7 +140,7 @@ extension AppDelegate {
let discardAndQuitButton = alert.addButton(withTitle: "Discard and Quit")
alert.messageText = "There are windows with unsaved buffers!"
alert.alertStyle = .warning
discardAndQuitButton.keyEquivalentModifierMask = NSCommandKeyMask
discardAndQuitButton.keyEquivalentModifierMask = .command
discardAndQuitButton.keyEquivalent = "d"
if alert.runModal() == NSAlertSecondButtonReturn {