mirror of https://github.com/djcb/mu.git
* mug.c: compatibility GDK_KEY_Escape vs GDK_Escape
This commit is contained in:
parent
be9e9953b1
commit
37b3e7f61f
|
@ -370,6 +370,11 @@ mug_shell (MugData * mugdata)
|
||||||
static gint
|
static gint
|
||||||
on_focus_query_bar (GtkWidget* ignored, GdkEventKey *event, MugData* mugdata)
|
on_focus_query_bar (GtkWidget* ignored, GdkEventKey *event, MugData* mugdata)
|
||||||
{
|
{
|
||||||
|
/* gtk2: GDK_Escape; gtk3: GDK_Key_Escape */
|
||||||
|
#ifndef GDK_KEY_Escape
|
||||||
|
#define GDK_KEY_Escape GDK_Escape
|
||||||
|
#endif /* GDK_KEY_Escape */
|
||||||
|
|
||||||
if (event->type==GDK_KEY_RELEASE && event->keyval==GDK_KEY_Escape) {
|
if (event->type==GDK_KEY_RELEASE && event->keyval==GDK_KEY_Escape) {
|
||||||
mug_query_bar_grab_focus (MUG_QUERY_BAR (mugdata->querybar));
|
mug_query_bar_grab_focus (MUG_QUERY_BAR (mugdata->querybar));
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue