Page 1 of 1

Handling key down events between multiple objects

Posted: Fri Feb 22, 2013 10:16 am
by ouch67
So I know this gets asked a lot but i couldn't find an answer for my specific needs.

So I have have 2 wxgrid objects on a frame. Each grid has it's own copy and paste keyboard shortcuts. These are needed so that you copy and paste from the correct wxgrid. These work great, however now I want to add a keyboard shortcut to save the contents of both. The problem I am having is that the database that they are being saved too is owned by the frame as well as the function that saves them. (different tabs save to different parts of the database, so the frame has to own it) And when I add key down events on the frame they never get processed because one of the grids has focus.

What is the best way to handle this situation?

Re: Handling key down events between multiple objects

Posted: Sun Feb 24, 2013 12:00 am
by Auria
you can probably find a solution here :
simplest is probably to assign a keyboard shortcut to a menu item, if you have a menu