title: Firefox addin sdk on launch/deploy check browser key bindings and warn if they are taken
body: <p>Hello helpful internet people :)</p>
  
  <p>I have been toying around with an the ff addon sdk and I have hit a snag. My addon will have an input box that will pop up and display when I hit Ctrl + T. My code does this fine in my non dev version ff because I have unbound the new tab binding(Ctrl + T).</p>
  
  <pre><code>    // Register key event handlers in each browser window
      var {observer} = require("sdk/keyboard/observer");
      var map = [];
  
      observer.on("keydown", function(event) {
          keylogger(event);
      });
  
      observer.on("keyup", function(event) {
          keylogger(event);
      });
  
      function keylogger(e){
          map[e.keyCode] = e.type == 'keydown';
          //console.log(e.keyCode); 
          if(map[17] &amp;&amp; map[84]){ // maybe also check if the last key down was control.
              //console.log(map);
              // DO STUFF HERE!@
          };
      }
  </code></pre>
  
  <p>My issue is that when I hit this in the application that spawns from cfx run in console the binding is set. I assume its just a blank version of ff. I don't want to just unbind it for when im debugging the plan is that when someone gets the addon it will check if that binding exists and either prompt the user to unbind or just unbind. Does anyone know how to do this? Im not sure how to access the current keybindings. Is it possible?</p>
  
  <p>Cheers for any help guidance or comments :)</p>