| 2040 | |
| 2041 | |
| 2042 | Hotkey *Hotkey::FindHotkeyContainingModLR(modLR_type aModifiersLR) // , HotkeyIDType hotkey_id_to_omit) |
| 2043 | // Returns the address of the hotkey if found, NULL otherwise. |
| 2044 | // Find the first hotkey whose modifiersLR contains *any* of the modifiers shows in the parameter value. |
| 2045 | // Obsolete: The caller tells us the ID of the hotkey to omit from the search because that one |
| 2046 | // would always be found (since something like "lcontrol=calc.exe" in the script |
| 2047 | // would really be defines as "<^control=calc.exe". |
| 2048 | // Note: By intent, this function does not find hotkeys whose normal/neutral modifiers |
| 2049 | // contain <modifiersLR>. |
| 2050 | { |
| 2051 | if (!aModifiersLR) |
| 2052 | return NULL; |
| 2053 | for (int i = 0; i < sHotkeyCount; ++i) |
| 2054 | // Bitwise set-intersection: indicates if anything in common: |
| 2055 | if (shk[i]->mModifiersLR & aModifiersLR) |
| 2056 | //if (i != hotkey_id_to_omit && shk[i]->mModifiersLR & modifiersLR) |
| 2057 | return shk[i]; |
| 2058 | return NULL; // No match found. |
| 2059 | } |
| 2060 | |
| 2061 | |
| 2062 | //Hotkey *Hotkey::FindHotkeyWithThisModifier(vk_type aVK, sc_type aSC) |
nothing calls this directly
no outgoing calls
no test coverage detected