Struct
GdkEventKey
Description [src]
struct GdkEventKey {
GdkEventType type;
GdkWindow* window;
gint8 send_event;
guint32 time;
GdkModifierType* state;
guint keyval;
gint length;
gchar* string;
guint16 hardware_keycode;
guint8 group;
guint is_modifier : 1;
}
Describes a key press or key release event.
Structure members
type |
The type of the event ( |
window |
The window which received the event. |
send_event |
|
time |
The time of the event in milliseconds. |
state |
A bit-mask representing the state of
the modifier keys (e.g. Control, Shift and Alt) and the pointer
buttons. See |
keyval |
The key that was pressed or released. See the
|
length |
The length of |
string |
A string containing an approximation of the text that
would result from this keypress. The only correct way to handle text
input of text is using input methods (see |
hardware_keycode |
The raw code of the key that was pressed or released. |
group |
The keyboard group. |
is_modifier |
A flag that indicates if |