Skip to content

Commit e4e7fb5

Browse files
committed
Remove outdated code blocking mouse clicks when modifier keys are down in plugin mode
1 parent 60f181b commit e4e7fb5

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

Source/PluginMode.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -365,15 +365,6 @@ class PluginMode final : public Component
365365
}
366366
}
367367

368-
bool hitTest(int x, int y) override
369-
{
370-
if (ModifierKeys::getCurrentModifiers().isAnyModifierKeyDown()) {
371-
// Block modifier keys when mouseDown
372-
return false;
373-
}
374-
return true;
375-
}
376-
377368
void mouseDown(MouseEvent const& e) override
378369
{
379370

@@ -458,11 +449,7 @@ class PluginMode final : public Component
458449
return true;
459450
}
460451
grabKeyboardFocus();
461-
if (key.getModifiers().isAnyModifierKeyDown()) {
462-
// Block All Modifiers
463-
return true;
464-
}
465-
// Pass other keypresses on to the editor
452+
466453
return false;
467454
}
468455

0 commit comments

Comments
 (0)