[pygtk] Enter Like Tab
Filip Van Raemdonck
mechanix at debian.org
Fri Jan 4 23:16:08 WST 2008
Hi Maximiliano,
On Dec 29, 2007 10:43 PM, Maximiliano Robaina <maxi_robaina at yahoo.com.ar> wrote:
>
> Is possible config "globally" to switch Tab key for Enter (Return) key?
>
> The functionality must be, when I press the Enter Key, the focus must do
> jump to the next active control (active widget).
Are you certain you want this switched *globally*? I'm sure that there
will be side effects that neither you nor I can currently think of.
If the purpose is merely something like moving from one text entry
field to another when someone presses enter after a bit of text,
there's the "activate" signal; add a callback and move focus to the
next widget you want in this callback.
I'm almost certain that there are similar if not the same signals for
other widget types -- where it makes sense.
HTH, KR,
Filip
--
Through the lens - http://photopassion.be
More information about the pygtk
mailing list