/** * Executed when the user hits any key * @param $widget Source widget of the event * @param $event GdkEvent associated * @ignore-autocomplete on */ public function onClose($widget, $event) { if ($event->keyval == Gdk::KEY_Escape) { parent::hide(); } }
public function autocomplete_window_destroy() { parent::hide(); return TRUE; }