[glade--]Keypress event for DrawingArea



I am trying to get a keypress event to happen whenever the drawing area is in focus (by the mouse being over it or the mouse has clicked on it to bring it into focus), and have added my drawing area to an event box. I have added to the keypress event function a cerr statement so I can see if it works, but it never does. I have successfully added a mouse button click and a mouse button release event (and their cerr statements are invoked), but it just doesn't seem to work for a key press. Is this supported? All three events have been assigned to the event box and not the drawing area from within glade.

Thanks in advance,

Mark





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]