<p>The KP-xx keybindings are in the Scintilla editing widget, not Geany.  That is documented <a href="http://www.geany.org/manual/current/index.html#keyboard-commands">here</a>.</p>
<p>In GTK any number of entities can bind to signals and Geany attempts to be the first on the list of signals for keyboard actions, so it gets first choice of actioning them, although other entities could override that.  If Geany has a keybinding it performs it, and signals that the key is handled and so the signal is not delivered to any entities after Geany on the list.  If Geany does not have a binding for the key it is passed to the next entity on the signals list, usually Scintilla, and so the Scintilla action happens.  This is also how characters get inserted in the document as geany passes them to Scintilla.</p>
<p>The Scintilla keybindings are set in Scintilla and Geany has not been programmed to be able to change or remove them.</p>
<p>To date it has not been considered worthwhile adding that capability, but a well written pull request may be accepted if it has a reasonable UI or integrates into the Geany keybindings UI.  As always with UIs be prepared for some discussion on that :)</p>
<p>The fact that Geany keybindings override snippet keybindings is documented <a href="http://www.geany.org/manual/current/index.html#snippet-keybindings">here</a>.</p>
<p>The Scintilla keyboard activating as well as the snippet looks at first sight to be a bug, <a href="https://github.com/geany/geany/issues/1354" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/1354" data-id="198617392" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1354</a> added to track.</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/1353#issuecomment-270281345">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ4yUmdh-_s5hhX9i7yLCq3tzMP5kks5rOwTbgaJpZM4LZtKZ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ5ZDZaRywTvRtT7wTI_y3tBebVPnks5rOwTbgaJpZM4LZtKZ.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/1353#issuecomment-270281345"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1353: The KP-xx keybindings are in the Scintilla editing widget, not Geany.  That is documented [here](http://www.geany.org/manual/current/index.html#keyboard-commands).\r\n\r\nIn GTK any number of entities can bind to signals and Geany attempts to be the first on the list of signals for keyboard actions, so it gets first choice of actioning them, although other entities could override that.  If Geany has a keybinding it performs it, and signals that the key is handled and so the signal is not delivered to any entities after Geany on the list.  If Geany does not have a binding for the key it is passed to the next entity on the signals list, usually Scintilla, and so the Scintilla action happens.  This is also how characters get inserted in the document as geany passes them to Scintilla.\r\n\r\nThe Scintilla keybindings are set in Scintilla and Geany has not been programmed to be able to change or remove them.\r\n\r\nTo date it has not been considered worthwhile adding that capability, but a well written pull request may be accepted if it has a reasonable UI or integrates into the Geany keybindings UI.  As always with UIs be prepared for some discussion on that :)\r\n\r\nThe fact that Geany keybindings override snippet keybindings is documented [here](http://www.geany.org/manual/current/index.html#snippet-keybindings).\r\n\r\nThe Scintilla keyboard activating as well as the snippet looks at first sight to be a bug, #1354 added to track. "}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1353#issuecomment-270281345"}}}</script>