winforms\Managed\System\WinForms\SendKeys.cs (13)
178if (haveKeys[HAVEALT] == 0 && (vk & ALTKEYSCAN) != 0) {
181haveKeys[HAVEALT] = UNKNOWN_GROUPING;
184AddMsgsForVK(vk & 0xff, repeat, haveKeys[HAVEALT] > 0 && haveKeys[HAVECTRL] == 0, hwnd);
224if (haveKeys[HAVEALT] == level) {
226haveKeys[HAVEALT] = 0;
482if (haveKeys[HAVEALT] == 0 && (vk & (int)Keys.Alt) != 0) {
485haveKeys[HAVEALT] = UNKNOWN_GROUPING;
487AddMsgsForVK(vk, repeat, haveKeys[HAVEALT] > 0 && haveKeys[HAVECTRL] == 0, hwnd);
518if (haveKeys[HAVEALT] != 0) throw new ArgumentException(SR.GetString(SR.InvalidSendKeysString, keys));
523haveKeys[HAVEALT] = UNKNOWN_GROUPING;
536if (haveKeys[HAVEALT] == UNKNOWN_GROUPING) haveKeys[HAVEALT] = cGrp;
548AddMsgsForVK(vk, repeat, haveKeys[HAVEALT] > 0 && haveKeys[HAVECTRL] == 0, hwnd);