[Gtk-sharp-list] Switching focus on objects as pressing "tab" key ?

Jesper K. Pedersen linux at famped.dk
Mon Mar 17 03:02:38 EDT 2008


On Sun, 16 Mar 2008 17:26:08 -0400
Brad Langhorst <brad at langhorst.com> wrote:

> On Sun, 2008-03-16 at 22:23 +0100, Jesper K. Pedersen wrote:
> > In connection with working on a small application where I need to
> > automate entry of data with a barcode reader I need to be able to
> > switch between gtk.entry objects on performing they keycode
> > "return" (activate) event.
> > 
> > I had hoped there were either a way to "inject" a keycode in the gtk
> > key event system or a simple way to switch to the next gtk.entry
> > object.
> > 
> 
> maybe you want entry.grabfocus ?
> 

The problem with using entry.grabfocus is that you will need to
hardcode the next entry that needs the focus.
I had hoped there were away to ask gtk to switch to next focus point - in the same manner as
you press the tabulate key.

but thank's for the input
  JesperKP


More information about the Gtk-sharp-list mailing list