Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main (string [] args){
- Gtk.init (ref args);
- Timeout.add (1, () => {
- Gdk.Event ev = Gdk.Display.get_default ().get_event ();
- if (ev != null){
- print ("Key:" + ev.key.str);
- }
- }
- Gtk.main ();
- }
Add Comment
Please, Sign In to add comment