mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Windows: Allow detecting keydown state for extended keycodes
This commit is contained in:
parent
5957cef205
commit
ebe954f176
1 changed files with 1 additions and 1 deletions
|
|
@ -4734,7 +4734,7 @@ bool KeyPress::isKeyCurrentlyDown (const int keyCode)
|
|||
const auto k = [&]
|
||||
{
|
||||
if ((keyCode & extendedKeyModifier) != 0)
|
||||
return keyCode;
|
||||
return keyCode & (extendedKeyModifier - 1);
|
||||
|
||||
const auto vk = BYTE (VkKeyScan ((WCHAR) keyCode) & 0xff);
|
||||
return vk != (BYTE) -1 ? vk : keyCode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue