how to program window to close with escape key
问题 I've been searching all over the place to find out how to get my program to close using the escape key. Not that many people use GTK+ I assume. Also, if it's not asking too much, can some please show me how to use the Gnome developer website so I could find this stuff out on my own? Thanks. So, closing the window with escape key, here's my code: #include <stdio.h> #include <string.h> #include <gtk/gtk.h> #include <stdlib.h> #include <ctype.h> #include <curses.h> #define KEY_ESC '\033' static