title: Suppress certain Windows keyboard shortcuts
body: <p>I'm attempting to suppress some Windows keyboard shortcuts (e.g. <kbd>ALT</kbd> + <kbd>TAB</kbd>, <kbd>LWIN</kbd>/<kbd>RWIN</kbd>, <kbd>ALT</kbd> + <kbd>F4</kbd>) so my application can handle them elsehow (simulating keypresses on an external machine).</p>
  
  <p>According to other SO questions and answers this is supposed to work:</p>
  
  <pre><code>        this.PreviewKeyDown += (s, e) =&gt; {
              if (e.Key == Key.LWin || e.Key == Key.RWin)
                  e.Handled = true;
          };
  </code></pre>
  
  <p>Problem is, it doesn't work. Whenever I hit <kbd>LWIN</kbd>/<kbd>RWIN</kbd>, the Start menu still pops up which I want to suppress so my application alone can use it. In the above snippet, <code>this</code> refers to a WPF Window which was being focussed while testing this. (It should obviously only suppress the action once Window has focus.)</p>
  
  <p>Any way to achieve what I'd like to achieve?</p>
  
  <p>Thanks,</p>
  
  <p>~Tgys</p>