In wxTreeCtrl I want to mark item with Ctrl/Shift + LeftMouseClick

Hi,

With this code I can get all keycodes except Caps Lock, Shift, Ctrl, Alt.
How I can get event from this keys (Shift/Ctrl)?

Leonid.

Franz Steinhäusler wrote:

···

this doesn't work, you cannot get the keycode from treectrl, but from
the event:
   def OnKeyDown(self, event):
       item = event.GetItem()
       kcode = event.GetKeyCode()

--
Franz Steinhaeusler