mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
ModifierKeys: Avoid direct access to currentModifiers when reading but not writing
This commit is contained in:
parent
0a71227126
commit
5d7208bb54
11 changed files with 64 additions and 64 deletions
|
|
@ -68,7 +68,7 @@ bool KeyPress::operator!= (int otherKeyCode) const noexcept { return ! o
|
|||
bool KeyPress::isCurrentlyDown() const
|
||||
{
|
||||
return isKeyCurrentlyDown (keyCode)
|
||||
&& (ModifierKeys::currentModifiers.getRawFlags() & ModifierKeys::allKeyboardModifiers)
|
||||
&& (ModifierKeys::getCurrentModifiers().getRawFlags() & ModifierKeys::allKeyboardModifiers)
|
||||
== (mods.getRawFlags() & ModifierKeys::allKeyboardModifiers);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue