diff options
author | RadAd <adamgates84+github@gmail.com> | 2019-05-24 13:42:36 +1000 |
---|---|---|
committer | RadAd <adamgates84+github@gmail.com> | 2019-05-24 13:42:36 +1000 |
commit | fab29d0a0a85a06647ab3ad704ee2c6cb7db0edb (patch) | |
tree | d48ed5345a976c8bacce67c4cc09fafd019bcaf6 /RadTerminal.cpp | |
parent | b109b3aa802ba463200eeced0f654f5316549deb (diff) | |
download | RadTerminal-fab29d0a0a85a06647ab3ad704ee2c6cb7db0edb.tar.gz RadTerminal-fab29d0a0a85a06647ab3ad704ee2c6cb7db0edb.zip |
Better handling of ctrl,alt,etc.
Diffstat (limited to 'RadTerminal.cpp')
-rw-r--r-- | RadTerminal.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/RadTerminal.cpp b/RadTerminal.cpp index ff0d61b..87696d5 100644 --- a/RadTerminal.cpp +++ b/RadTerminal.cpp @@ -412,15 +412,15 @@ void RadTerminalWindowOnKeyDown(HWND hWnd, UINT vk, BOOL fDown, int cRepeat, UIN uint32_t unicode = ascii; unsigned int mods = 0; - if (KeyState[VK_SHIFT] != 0) + if (KeyState[VK_SHIFT] & 0x8) mods |= TSM_SHIFT_MASK; - if (KeyState[VK_SCROLL] != 0) + if (KeyState[VK_SCROLL] & 0x8) mods |= TSM_LOCK_MASK; - if (KeyState[VK_CONTROL] != 0) + if (KeyState[VK_CONTROL] & 0x8) mods |= TSM_CONTROL_MASK; - if (KeyState[VK_MENU] != 0) + if (KeyState[VK_MENU] & 0x8) mods |= TSM_ALT_MASK; - if (KeyState[VK_LWIN] != 0) + if (KeyState[VK_LWIN] & 0x8) mods |= TSM_LOGO_MASK; UINT scan = (cRepeat >> 8); |