private bool ShouldRouteCommandBackToVS(Guid cmdGuid, uint cmdId, bool translated, bool startsMultiKeyChord) {
//Any command that wasn't translated by TranslateAccelleratorEx or has no VS handler in global scope should be routed to WPF
if (!translated || cmdGuid == Guid.Empty) {
return false;
}
//Allow VS to take over for anything that would be a common shell command
// (CTRL+Tab, CTRL+Shift+TAB, Shift+ALT+Enter, etc.)
if (cmdGuid == VSConstants.GUID_VSStandardCommandSet97) {
//If there's a GUID_VSStandardCommandSet97 command that should be handled by WPF instead, check for them and return false
//Otherwise indicate that the command should be handled by VS
return true;
}
//If there are additional commands that VS should be handling instead of WPF, check for them and return true here
//Otherwise indicate that the command should be handled by WPF
return false;
}
}