// In case a physical keyboard is attached, handle clicks with the menu key
  // depressed by opening in a new tab
  boolean handleMenuClick(Tab tab, String url) {
    if (mController.isMenuDown()) {
      mController.openTab(
          url,
          (tab != null) && tab.isPrivateBrowsingEnabled(),
          !BrowserSettings.getInstance().openInBackground(),
          true);
      mActivity.closeOptionsMenu();
      return true;
    }

    return false;
  }
 @Override
 public void closeOptionsMenu() {
   if (!mSherlock.dispatchCloseOptionsMenu()) {
     super.closeOptionsMenu();
   }
 }