Browse Source

Stopped buttons responding to key-shortcuts when they're not actually visible.

tags/2021-05-28
jules 11 years ago
parent
commit
9a54f3a01a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/buttons/juce_Button.cpp

+ 1
- 1
modules/juce_gui_basics/buttons/juce_Button.cpp View File

@@ -572,7 +572,7 @@ void Button::clearShortcuts()
bool Button::isShortcutPressed() const
{
if (! isCurrentlyBlockedByAnotherModalComponent())
if (isShowing() && ! isCurrentlyBlockedByAnotherModalComponent())
for (int i = shortcuts.size(); --i >= 0;)
if (shortcuts.getReference(i).isCurrentlyDown())
return true;


Loading…
Cancel
Save