|
From: Nerijus B. <ne...@us...> - 2006-02-18 22:54:52
|
Update of /cvsroot/opendict/opendict/lib/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29579 Modified Files: mainwin.py Log Message: ESC now works on Windows too Index: mainwin.py =================================================================== RCS file: /cvsroot/opendict/opendict/lib/gui/mainwin.py,v retrieving revision 1.93 retrieving revision 1.94 diff -u -d -r1.93 -r1.94 --- mainwin.py 18 Feb 2006 11:26:20 -0000 1.93 +++ mainwin.py 18 Feb 2006 22:54:47 -0000 1.94 @@ -509,7 +509,7 @@ EVT_TIMER(self, idClipboard, self.onTimerClipboard) EVT_CLOSE(self, self.onCloseWindow) - EVT_KEY_DOWN(self, self.onKeyDown) + self.entry.Bind(wx.EVT_KEY_DOWN, self.onKeyDown) # Prepare help message self.htmlCode = _(""" @@ -829,7 +829,7 @@ key = event.KeyCode() if key == wx.WXK_ESCAPE: self.onClean(None) - return + event.Skip() def onClearHistory(self, event): |