window: fixed key handler code
When in GcalWindow::new-event-mode, the key handler cannot redirect input to search bar. This commit fixes it.
This commit is contained in:
@@ -226,6 +226,10 @@ key_pressed (GtkWidget *widget,
|
||||
|
||||
priv = gcal_window_get_instance_private (GCAL_WINDOW (user_data));
|
||||
|
||||
/* special case: creating an event */
|
||||
if (priv->new_event_mode)
|
||||
return GDK_EVENT_PROPAGATE;
|
||||
|
||||
return gtk_search_bar_handle_event (GTK_SEARCH_BAR (priv->search_bar),
|
||||
event);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user