Gtk.Window.prototype.activate_key
function activate_key(event:Gdk.EventKey):Boolean { // Gjs wrapper for gtk_window_activate_key() }
Activates mnemonics and accelerators for this Gtk.Window. This is normally called by the default ::key_press_event handler for toplevel windows, however in some cases it may be useful to call this directly when overriding the standard key handling for a toplevel window.
Since 2.4
- event
- Returns
true if a mnemonic or accelerator was found and activated.