<blockquote>
<p>(I tried Keybindings, but pressing Esc closes the dialog that records the shortcut).</p>
</blockquote>

<p>Yes, the GTK toolkit hijacks esc as the close dialog key, happens on any dialog, not just the keybinding one.</p>

<p>Possibly not a good key to use for that reason.</p>

<p>Just out of interest why do you need to keep closing Geany?  It should open new files in the existing instance if one is running, so you only need to close the tab.</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/issues/1124#issuecomment-231008420">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ0_rDDkla60XzwnAQmTz9EfXVKgMks5qTLCagaJpZM4JGxw0">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9_BHiELzhh2D6ipalfRz4oEeSn9ks5qTLCagaJpZM4JGxw0.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1124#issuecomment-231008420"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>