I'm writing a Python GTK app that uses a gtk.Entry widget to forward keypresses to multiple other widgets. Unfortunately, it seems like GTK has a default binding that switches widget focus on the up and down arrow keys out of the Entry widget.
I want to disconnect this key-based focus switching, but leave mouse based focus switching in place. I can't seem to find where in the API I'd do this.
Any suggestions?
Return True from a handler for the key-press-event signal to prevent the default handling: http://www.pygtk.org/docs/pygtk/class-gtkwidget.html#signal-gtkwidget--key-press-event
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With