<blockquote>
<p>It would be really nice if I could define Esc as a key binding for exiting Geany, if it's pressed in the main window. Is there a way to do that? (I tried Keybindings, but pressing Esc closes the dialog that records the shortcut).</p>
</blockquote>

<p>As <a href="https://github.com/elextr" class="user-mention">@elextr</a> pointed out, <kbd>Escape</kbd> is unfortunately handled specially by GTK to close the dialog -- which is nice 99% of the time until you want to select <kbd>Escape</kbd> as a keybinding.  But you can manually edit the keybinding without the fancy dialog by first selecting the row and then clicking again on the <em>Shortcut</em> column (no double click as it would pop up the dialog): it should enter text editing mode on the shortcut, and there you can manually write <code>Escape</code>.  Validated with <kbd>Return</kbd> and save the preferences, and you should have Quit bound to <kbd>Escape</kbd></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-231056876">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ-X2EO3Fs6Isv7Nm8j7wuwDZt80jks5qTOjIgaJpZM4JGxw0">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJwNCUYfmAzRL3XtebvKyBvgQWH9Hks5qTOjIgaJpZM4JGxw0.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-231056876"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>