Trouble with Del accelerator under Windows; interferes

wxpython 2.9.1.1

Windows only problem (not a problem in OSX or Linux; it works there)

I have a situation where Del is an accelerator…but I also have a tree control with editable labels in my main frame as well…but since Del is an accelerator, it eats the user’s Del keystrokes even when the label is being edited.

It does this only under Windows; other platforms are OK. I’'ve attached a sample code to demonstrate. A key piece of info, in my opinion, is that if I remove the evt.Skip() in OnDelPressed, then on Linux and OSX both, the Del key gets eaten. In other words, the accelerator handling code in OSX and Linux is correctly handling the evt.Skip(), but under Windows, maybe it’s not.

Small runnable sample app attached. To demonstrate the problem, click one of the tree items. Then click it again to put it into editing mode. Then position your cursor somewhere in the middle of the text, and press Del.

treectrl_and_accelerators.py (1.73 KB)

Nevermind on this one; I think that I found a fix for it, and posted on the topic in the wx group…since it involves wxwidgets instead of wxpython.

https://groups.google.com/forum/?fromgroups=#!topic/wx-users/Cx-8fqK3Yfg