Grx.Event.prototype.get_keycode

function get_keycode(): Number(guint32) {
    // Gjs wrapper for grx_event_get_keycode()
}
  

Gets the platform dependant key code for the event.

Returns

the key code or 0 if event is not a Grx.KeyEvent