[haiku-commits] r36164 - haiku/trunk/src/preferences/mail

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 11 Apr 2010 21:07:13 +0200 (CEST)

Author: czeidler
Date: 2010-04-11 21:07:13 +0200 (Sun, 11 Apr 2010)
New Revision: 36164
Changeset: http://dev.haiku-os.org/changeset/36164/haiku
Ticket: http://dev.haiku-os.org/ticket/5542

Modified:
   haiku/trunk/src/preferences/mail/AutoConfigWindow.cpp
Log:
Fix ticket #5542, patch by Finn.

Modified: haiku/trunk/src/preferences/mail/AutoConfigWindow.cpp
===================================================================
--- haiku/trunk/src/preferences/mail/AutoConfigWindow.cpp       2010-04-11 
18:14:42 UTC (rev 36163)
+++ haiku/trunk/src/preferences/mail/AutoConfigWindow.cpp       2010-04-11 
19:07:13 UTC (rev 36164)
@@ -45,6 +45,7 @@
        buttonRect.left+= 5 + buttonWidth;
        buttonRect.right = buttonRect.left + buttonWidth;
        fNextButton = new BButton(buttonRect, "ok", "OK", new BMessage(kOkMsg));
+       fNextButton->MakeDefault(true);
        fRootView->AddChild(fNextButton);
        
        fBoxRect = Bounds();
@@ -54,6 +55,10 @@
        fMainView = new AutoConfigView(fBoxRect, fAutoConfig);
        fMainView->SetLabel("Account settings");
        fRootView->AddChild(fMainView);
+       
+       // Add a shortcut to close the window using Command-W
+       AddShortcut('W', B_COMMAND_KEY, new BMessage(B_QUIT_REQUESTED));
+       
 }
 
 


Other related posts: