wx.EVT_TREE_KEY_DOWN question

Howdy,

Sorry to be hitting the group so hard lately, but I'm going to do it anyway.
I have a TreeCtrl where I want "shift + up arrow" to go to the parent node.
I have bound wx.EVT_TREE_KEY_DOWN and can fire on" shift + up arrow".
The problem is the inherent up arrow code always seems to fire first. In other words, my code
fires after the vanilla "up arrow" code fires. so that when I type "shift + up arrow",
I frequently end up, two levels up. I have tried putting Skip() and Veto(), in various places,
just to cover my bases, but nothing seems to work. What am I missing?

TIA,
Danny

Danny Shevitz wrote:

Howdy,

Sorry to be hitting the group so hard lately, but I'm going to do it anyway.
I have a TreeCtrl where I want "shift + up arrow" to go to the parent node.
I have bound wx.EVT_TREE_KEY_DOWN and can fire on" shift + up arrow".
The problem is the inherent up arrow code always seems to fire first. In other words, my code
fires after the vanilla "up arrow" code fires. so that when I type "shift + up arrow",
I frequently end up, two levels up. I have tried putting Skip() and Veto(), in various places,
just to cover my bases, but nothing seems to work. What am I missing?

Try EVT_KEY_DOWN instead.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

thanks again, that did it.

D

···

At 04:28 PM 2/12/2007 -0800, you wrote:

Danny Shevitz wrote:

Howdy,
Sorry to be hitting the group so hard lately, but I'm going to do it anyway.
I have a TreeCtrl where I want "shift + up arrow" to go to the parent node.
I have bound wx.EVT_TREE_KEY_DOWN and can fire on" shift + up arrow".
The problem is the inherent up arrow code always seems to fire first. In other words, my code
fires after the vanilla "up arrow" code fires. so that when I type "shift + up arrow",
I frequently end up, two levels up. I have tried putting Skip() and Veto(), in various places,
just to cover my bases, but nothing seems to work. What am I missing?

Try EVT_KEY_DOWN instead.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org