title: Keyboard Shortcuts in Google Chrome / Chromium Extensions
body: <p>I've created a basic <a href="http://github.com/mmrobins/LastTab" rel="noreferrer">extension for Google Chrome</a> to change the behavior of which tab is selected when you close a tab so that the selected tab is the last one you had selected instead of just the one before the tab you closed.</p>
  
  <p>I want to add keyboard shortcuts, and I've found a way to do that using jquery and <a href="http://code.google.com/p/js-hotkeys/" rel="noreferrer">jquery hotkeys</a>, but the problem I'm finding is that the keyboard shortcuts only work once a page is loaded.  So for example, if you open a new tab without going anywhere, the shortcut keys don't work because the javascript only loads when a page is on the screen.  Same problem if you have the extensions page open in a tab.</p>
  
  <p>Does anyone know of a better way to do keyboard shortcuts in Chrome extensions?  I've been looking through the <a href="http://code.google.com/chrome/extensions/getstarted.html" rel="noreferrer">extensions documentation</a>, but I haven't found anything that looks promising.</p>