key-press-event

key-press-event

This is an event signal, fired when the connected widget picks up a GDK_KEY_PRESS event. Key press events are generated by any of the keys on a keyboard being pressed. You can distinguish between the key values in the callback using an if or switch statement:

Yes, we have hard-coded keysyms. The full list of PHP-GTK keysymbol constants is in the source code in the file php-gtk/ext/gtk+/php_gdk.c.

Callback function

bool callback(GtkWidget widget, GdkEvent key_press);

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.