[Commits] (morgen) Partial fix for bug 1952 (Accounts dialog default button). Now hitting the

commits at osafoundation.org commits at osafoundation.org
Thu Sep 23 21:25:31 PDT 2004


Commit by: morgen
Modified files:
chandler/application/dialogs/AccountPreferences.py 1.12 1.13

Log message:
Partial fix for bug 1952 (Accounts dialog default button).  Now hitting the
Enter key will submit the accounts dialog.  On the mac, however, if the focus
is in the accounts list control, Enter still does nothing.


ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/application/dialogs/AccountPreferences.py.diff?r1=text&tr1=1.12&r2=text&tr2=1.13

Index: chandler/application/dialogs/AccountPreferences.py
diff -u chandler/application/dialogs/AccountPreferences.py:1.12 chandler/application/dialogs/AccountPreferences.py:1.13
--- chandler/application/dialogs/AccountPreferences.py:1.12	Thu Sep 23 16:00:09 2004
+++ chandler/application/dialogs/AccountPreferences.py	Thu Sep 23 21:25:29 2004
@@ -178,6 +178,7 @@
         self.Bind(wx.EVT_BUTTON, self.OnCancel, id=wx.ID_CANCEL)
         self.Bind(wx.EVT_LISTBOX, self.OnAccountSel,
          id=wx.xrc.XRCID("ACCOUNTS_LIST"))
+        self.SetDefaultItem(wx.xrc.XRCCTRL(self, "wxID_OK"))
 
     def __PopulateAccountsList(self, account):
         """ Find all AccountBase items and put them in the list; also build



More information about the Commits mailing list