[Gtk-sharp-list] How to make return act like tab

Chris Howie cdhowie at gmail.com
Fri Feb 6 15:02:35 EST 2009


On Sun, Jan 25, 2009 at 12:51 PM, Wolfgang Mauer <W.Mauer at top-soft.info> wrote:
> Hi all,
> is it posssible to make the "Return" Key acts like the "Tab" key ?

Presumably you want this only for Entry widgets?  If so, write a
method something like:

private static void OnForwardActivate(object sender, EventArgs args)
{
    Widget widget = sender as Widget;
    if (widget != null)
        widget.ChildFocus(DirectionType.TabForward);
}

Then attach this method to the Entry.Activated signal for each entry
you want this behavior to apply to.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Gtk-sharp-list mailing list