Catching the arrow keys
- From: jody <jody xha gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Catching the arrow keys
- Date: Thu, 22 Apr 2010 12:37:25 +0200
Hi
In my Gtk::Window i have implemented my key event function
bool xbv::press_action(GdkEventKey *e) {
switch (e->keyval) {
case GDK_Left:
printf("Left pressed\n");
break;
case GDK_Right:
printf("Right pressed\n");
break;
case GDK_Up:
printf("Up pressed\n");
break;
case GDK_Down:
printf("Down pressed\n");
break;
case GDK_Escape:
printf("Escape pressed\n");
break;
}
But when my Window is running, only the Escape key is caught, but none
of the arrow keys.
Am i missing something, or isn't it possible?
Thank You
Jody
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]