Re: [gtk-list] dead keys and key_press_event reporting



> On Mon, 4 Oct 1999, Oskar Liljeblad wrote:
> > 
> > Is there anything I can do so that key presses in a GtkWindow are reported
> > like those in GtkEntry?
> > 
> > (Does this have anything to do with what event types a certain
> > X window listens for?)
> > 
> 
> The difference is that a GdkEventKey contains two fields:
>  event->keyval is the keysym that was pressed
>  event->string is the "text" corresponding to the keyval
> 
> GtkEntry uses event->string to get the text to place in the entry. If you
> press a key with an empty event->string (such as a modifier key) then no 
> text is inserted and there's no "changed" signal from the entry.

does GtkText also use key press events? I mean, how does the key I
press go into the edit buffer? I know, this is too basic, but still
...

regards,

sachin

Hubbard's Law:
        Don't take life too seriously; you won't get out of it alive.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 Sachin Garg, Member Technical Staff 
      Centre for Development of Advanced Computing,BANGALORE,INDIA  
            Phone: +91-80-5584271/143/982 Fax: +91-80-5584893
               http://sangam.cjb.net <sachin@cdacb.ernet.in>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]