[haiku-commits] haiku: hrev52851 - src/preferences/printers

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 10 Feb 2019 05:04:38 -0500 (EST)

hrev52851 adds 1 changeset to branch 'master'
old head: e89985cc317a80cfcfaa320944c0d015c0fc93f6
new head: 1e82c5d9275f866b39f9815e7c0ad3434653e9e0
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=1e82c5d9275f+%5Ee89985cc317a

----------------------------------------------------------------------------

1e82c5d9275f: preferences/printers Close dialog on alt+w/esc - Bug #14573
  
   * Adds keyboard shortcuts to close the Add Printer dialog
  
  Change-Id: Iac3d75c4b3e27793124919112f1be68308c95db3
  Reviewed-on: https://review.haiku-os.org/c/1019
  Reviewed-by: Adrien Destugues <pulkomandy@xxxxxxxxx>
  Reviewed-by: Stephan Aßmus <superstippi@xxxxxx>

                                      [ Rob Gill <rrobgill@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52851
Commit:      1e82c5d9275f866b39f9815e7c0ad3434653e9e0
URL:         https://git.haiku-os.org/haiku/commit/?id=1e82c5d9275f
Author:      Rob Gill <rrobgill@xxxxxxxxxxxxxx>
Date:        Thu Feb  7 22:04:05 2019 UTC
Committer:   Stephan Aßmus <superstippi@xxxxxx>
Commit-Date: Sun Feb 10 10:04:36 2019 UTC

Ticket:      https://dev.haiku-os.org/ticket/14573

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 1 deletion(-)
src/preferences/printers/AddPrinterDialog.cpp | 5 ++++-

----------------------------------------------------------------------------

diff --git a/src/preferences/printers/AddPrinterDialog.cpp 
b/src/preferences/printers/AddPrinterDialog.cpp
index b03cae67f0..2bf8744155 100644
--- a/src/preferences/printers/AddPrinterDialog.cpp
+++ b/src/preferences/printers/AddPrinterDialog.cpp
@@ -40,7 +40,8 @@ AddPrinterDialog::AddPrinterDialog(BWindow *parent)
        :
        Inherited(BRect(78, 71, 400, 300), B_TRANSLATE("Add printer"),
                B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL,
-               B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS),
+               B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS
+               | B_CLOSE_ON_ESCAPE),
        fPrintersPrefletMessenger(parent)
 {
        _BuildGUI(0);
@@ -221,6 +222,8 @@ AddPrinterDialog::_BuildGUI(int stage)
                .SetInsets(B_USE_WINDOW_SPACING, B_USE_WINDOW_SPACING,
                        B_USE_WINDOW_SPACING, B_USE_WINDOW_SPACING);
 
+       AddShortcut('W', B_COMMAND_KEY, new BMessage(B_QUIT_REQUESTED));
+
        SetDefaultButton(fOk);
        fOk->MakeDefault(true);
 


Other related posts:

  • » [haiku-commits] haiku: hrev52851 - src/preferences/printers - Stephan Aßmus