I have a messageDialog set up so that its default response is gtk.RESPONSE_OK so the okay button is clicked when the user hits enter even if the okay button does not have focus. I would like to also have the space bar trigget the default_response. What is the best way to do this?
This is with python 2.4 in a linux environment. Unfortunately I don’t have permission to upgrade python.
Connect to the
key-press-eventsignal on the message dialog:Bear in mind, though, that changing users’ expectations of the user interface is generally considered Not Cool.