[ wxwindows-Bugs-1674598 ] Can't use Escape Key for keyboard shortcut

SourceForge.net noreply at sourceforge.net
Mon Mar 5 21:20:40 PST 2007


Bugs item #1674598, was opened at 2007-03-06 05:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1674598&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMSW specific
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: greenlantern (jccfifkf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Can't use Escape Key for keyboard shortcut

Initial Comment:
My application uses the escape key as a keyboard
shortcut to abort certain functions.  This was working
in wxpython 2.6.3.3. (Windows XP SP2, Python 2.4)
This is no longer working in wxpython 2.8.1.1. 

Here's a code snippet:

====================================
class MainWindow(wx.Frame):
    wx.Frame.__init__(self,parent,wx.ID_ANY, title, \
                          style=wx.DEFAULT_FRAME_STYLE| |
                             wx.FULL_REPAINT_ON_RESIZE)

    ...  Code removed here ...

    acceltable = wx.AcceleratorTable([
               (wx.ACCEL_NORMAL, wx.WXK_ESCAPE, \
               ABORTBUTTONGUI_ID),
            ])
    self.SetAcceleratorTable(acceltable)

    # end of __init__

=====================================


Defining other keyboard shortcuts (e.g. ALT-B, CTRL-B)
work fine. 

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1674598&group_id=9863




More information about the wx-dev mailing list