<p><b>@kugel-</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/2220#discussion_r304793211">src/keybindings.c</a>:</p>
<pre style='color:#555'>> @@ -1375,6 +1375,11 @@ static gboolean on_key_press_event(GtkWidget *widget, GdkEventKey *ev, gpointer
        if (keyval >= GDK_KP_Space && keyval < GDK_KP_Equal)
                keyval = key_kp_translate(keyval);
 
+       if (keyval == GDK_KEY_Escape)
+       {
+               /* close search bar */
+               ui_emit_button_close_in_search_bar_clicked_if_visible(doc);
+       }
</pre>
<p>Here we should rather have a keybinding. I used to map escape to back, in which case, I wouldn't want the search bar to be closed (if the focus is on the editor).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2220?email_source=notifications&email_token=AAIOWJ2EN2ICKCINUZAVEETQAASG5A5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB62K6PY#pullrequestreview-263499583">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5F6OAD3YTURQX666TQAASG5ANCNFSM4IEKN7DQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ7FQO3W3KDITIFSY7LQAASG5A5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB62K6PY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2220?email_source=notifications\u0026email_token=AAIOWJ2EN2ICKCINUZAVEETQAASG5A5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB62K6PY#pullrequestreview-263499583",
"url": "https://github.com/geany/geany/pull/2220?email_source=notifications\u0026email_token=AAIOWJ2EN2ICKCINUZAVEETQAASG5A5CNFSM4IEKN7D2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB62K6PY#pullrequestreview-263499583",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>