You know what really gets to me? People who open links too quickly. Haphazardly opening new tabs all over the place...it really grinds my gears.

Ok, I've never thought that, but apparently somebody did when they added the code that Jonathan Peppers found in an abstraction layer for System.Windows.Forms.WebBrowser.

protected virtual bool OnNavigating(Uri url, byte[] postData)
{
   NavigatingEventArgs nea = new NavigatingEventArgs(url, postData);
   
   if (((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) &&
      ((Keyboard.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt) && IsInitiallyLoaded)
   {                
      nea.Cancel = true;
      HideWaitIndicator();                

      // Please don't submit this to the daily WTF
      if ((DateTime.Now - _lastNewTab).TotalSeconds > 1)
      {
         _lastNewTab = DateTime.Now;
         OnOpenNewTab(new NavigatingEventArgs(url, postData));
      }
   }
   else
   {
      if (Navigating != null)
      {
         Navigating(this, nea);
      }
   }

   return nea.Cancel;
}
[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!