Re: GdkEventKey --> utf-8 ?



On Thu, 10 Sep 2009, Tor Lillqvist wrote:

Dead accent keys are in no way unique to Spanish keyboards. And then

... Why does GtkEntry work correctly?

there is also something called compose sequences, which are popular in
some locales. And then there are Input Methods which are popular
especially for East Asian languages.

... yes, exactly! And I cannot know all accent keys of all keyboards
   layouts in all languages ...

Your problem is that you expect
too much from the low-level GDK events.


Ok, I see! But because the GtkEntry handles this correctly I'm
convinced there is some function (perhaps hidden) in Gt(d)k
which has the knowledge of all keyboards layouts in all languages.

Imagine a text editor! Ok, I could ask all Spanish, East Asian ...
users to first insert the text into a GtkEntry from where I read
it by using "gtk_entry_get_text(GTK_ENTRY(entry))".

But actually a text editor user would expect the letters appear
as soon as he/she presses a key. Thus, I have no other chance
as to use a key press handler.


--
J.Anders, GERMANY, TU Chemnitz, Fakultaet fuer Informatik


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