From 7c681905bd81948a09b54fc6013a917852148f12 Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Wed, 31 May 2017 20:04:11 -0700 Subject: [PATCH] Add keyb accelerators to file change & window state dialogs. Fixes #2928 --- src/atom-environment.coffee | 4 ++-- src/pane.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atom-environment.coffee b/src/atom-environment.coffee index e97b14508..53d55a9f7 100644 --- a/src/atom-environment.coffee +++ b/src/atom-environment.coffee @@ -933,8 +933,8 @@ class AtomEnvironment extends Model "Would you like to add the #{nouns} to this window, permanently discarding the saved state, " + "or open the #{nouns} in a new window, restoring the saved state?" buttons: [ - 'Open in new window and recover state' - 'Add to this window and discard state' + '&Open in new window and recover state' + '&Add to this window and discard state' ] if btn is 0 @open diff --git a/src/pane.coffee b/src/pane.coffee index 31ee92f77..e5dc022a0 100644 --- a/src/pane.coffee +++ b/src/pane.coffee @@ -640,7 +640,7 @@ class Pane chosen = @applicationDelegate.confirm message: message detailedMessage: "Your changes will be lost if you close this item without saving." - buttons: [saveButtonText, "Cancel", "Don't Save"] + buttons: [saveButtonText, "Cancel", "&Don't Save"] switch chosen when 0 then saveFn(item, saveError) when 1 then false