From 3de558377ac85992076b5d00a0bfcd7477ce8e30 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 21 Jan 2016 16:00:22 +0100 Subject: [PATCH] MacGui: add a key equivalent to the 'don't quit' button of the quit alert. --- macosx/HBAppDelegate.m | 1 + 1 file changed, 1 insertion(+) diff --git a/macosx/HBAppDelegate.m b/macosx/HBAppDelegate.m index 0dc8030b9..537cc6144 100644 --- a/macosx/HBAppDelegate.m +++ b/macosx/HBAppDelegate.m @@ -150,6 +150,7 @@ [alert setInformativeText:NSLocalizedString(@"If you quit HandBrake your current encode will be reloaded into your queue at next launch. Do you want to quit anyway?", nil)]; [alert addButtonWithTitle:NSLocalizedString(@"Quit", nil)]; [alert addButtonWithTitle:NSLocalizedString(@"Don't Quit", nil)]; + [alert.buttons[1] setKeyEquivalent:@"\E"]; [alert setAlertStyle:NSCriticalAlertStyle]; NSInteger result = [alert runModal]; -- 2.40.0