[Gambas-user] Maybe a bug in class Key of gb.gtk component

Benoit Minisini gambas at ...1...
Thu Jan 3 11:08:21 CET 2008


On jeudi 3 janvier 2008, Leonardo Miliani wrote:
> Leonardo Miliani ha scritto:
> > I'm using Gambas 1.9.92 on Ubuntu 7.10.
> > I think I had discovered a little bug in class Key of gb.gtk component.
> > If I try to get the code of a pressed key (using the keypress event) I
> > get this error:
> > "No keyboard event data".
> >
> > But if I build the same project with the gb.qt component, my code works
> > fine.
> >
> >
> > I can easily reproduce the bug creating a new GTK project and in the
> > form right-click and choose "Event/KeyPress". After that, write in the
> > event block this code:
> > message (key.code)
> >
> > Now run it....
> > After that, open the Project/Properties from the menu, deselect the
> > gb.gtk component, select the gb.qt, and try again.
>
> Up...
> Does anybody know why using Gtk isn't possible to manage the key events?

Apparently a bug. Or, better, a missing feature, as Form_KeyPress must be 
internally implemented in a special way.

Regards,

-- 
Benoit Minisini




More information about the User mailing list