key values on key pressed
- From: Sergei Kolomeeyets <kolomeeyets gmail com>
- To: gtk-app-devel-list gnome org
- Subject: key values on key pressed
- Date: Fri, 22 Nov 2013 19:39:57 +0400
Hi,
to write a trivial key-press handler like the following:
static gboolean key_pressed (GtkWidget *area, GdkEventKey *event, GPtrArray
*ptLinePoints)
{
GError *error;
guint tt;
if (event->keyval == GDK_Delete) {
...
}
if (event->keyval == GDK_Return) {
...
}
return FALSE;
}
one can use predefined constants from gdk/gdkkeysyms.h. Is there anybody
who could tell me what all those constants written in the file mean (except
the most explicit ones like GDK_Delete or similar)? The question about the
possible meaning of GDK_KP_Enter, for instance, drivers me up the wall
really. I'm actually able to guess the meaning of "Enter" and "GDK",,, But
what does that KP mean? Of course, the question is not about only one
constant, but about the whole set of names which is in the file. Who knows
it or where can I get the description for them?
In particulary, I badly need to use Alt+<...> and Ctrl+<...> combinations.
It would be very appreciated if someone throw a hint to me at least
relating to hexes for such combinations.
Tricks like
tt = event->keyval;
g_print ("%h", tt);
give nothing.
Thanks!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]