GNOME Bugzilla – Bug 644836
gdk_keyval_to_unicode returns incorrect value for keyval = GDK_Return
Last modified: 2011-03-16 20:00:23 UTC
gdk_keyval_to_unicode(GDK_Return) returns 0. It should return 13 instead.
varunjain@varunjain-desktop:~/temp/cpp$ cat GdkTest.cc #include <stdio.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> int main() { printf("%u\n", gdk_keyval_to_unicode(GDK_Return)); } varunjain@varunjain-desktop:~/temp/cpp$ g++ -o GdkTest GdkTest.cc `pkg-config --libs --cflags gtk+-2.0` varunjain@varunjain-desktop:~/temp/cpp$ ./GdkTest 0 varunjain@varunjain-desktop:~/temp/cpp$