title: How to Remove Key Bindings
body: <p>I have a standard command registered in the <em>plugin.xml</em> with a handler and key bindings like this:</p>
  
  
  
  <pre><code>&lt;extension point="org.eclipse.ui.bindings"&gt;
    &lt;scheme
          id="AcmeSchema"
          name="ACME Schema"&gt;
    &lt;/scheme&gt;
    &lt;key
          commandId="org.acme.module.myCommand"
          contextId="org.eclipse.ui.contexts.dialogAndWindow"
          schemeId="AcmeSchema"
          sequence="M1+M2+M3+F6"&gt;
    &lt;/key&gt;
  &lt;/extension&gt;
  </code></pre>
  
  <p>Everything works fine and the key binding is shown via <code>IBindingService#openKeyAssistDialog</code>.</p>
  
  <p>Now I want to disable the command. (I do that by adding an <code>activeWhen</code> to the corresponding handler.) Yet the key binding is still shown. I tried hiding the command via activity, but it's still shown. The key binding itself does not have a <code>visibleWhen</code> or something similar.</p>
  
  <p>The problem here is that even though the command is not visible anywhere, it can still be triggered via the shortcut key. And since the internal rules for its enablement are not fullfilled, executing the command fails.</p>
  
  <p>How do I remove a key binding for a command that is no longer active?</p>