In my app, I have a special action mapped to the tab key. The problem is that when you use the short-cut Alt-Tab to switch between different apps, my app gets a tab key (but not the Alt key) when it becomes activated, which I'd like to avoid. This happens sometimes (not all the time), especially when you switch apps very fast.
I could filter it out by checking Keyboard.IsKeyDown(Key.LeftAlt)
, but my app doesn't get the Alt-key in this case. Any tip?