keybinds: track pressed special binds

Ignore mods only if we're processing a special bind, and only if it's pressed. Otherwise we might shadow normal key releases via ignoring mods. Fixes #3240
This commit is contained in:
vaxerski
2023-09-10 16:27:14 +01:00
parent 807fc20525
commit dcb909df04
2 changed files with 15 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ class CKeybindManager {
uint32_t m_uLastMouseCode = 0;
bool m_bIsMouseBindActive = false;
std::vector<SKeybind*> m_vPressedSpecialBinds;
int m_iPassPressed = -1; // used for pass