Skip to content

Commit

Permalink
Don't hide tooltips when hitting cmd button, for better usability wit…
Browse files Browse the repository at this point in the history
…h screen reader
  • Loading branch information
timothyschoen committed Dec 4, 2024
1 parent 6680a98 commit 9557cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Iolet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void Iolet::render(NVGcontext* nvg)
bool Iolet::hitTest(int x, int y)
{
// If locked, don't intercept mouse clicks
if (locked || commandLocked)
if (locked)
return false;

if (patchDownwardsOnly && isInlet && !cnv->connectingWithDrag)
Expand All @@ -122,7 +122,7 @@ bool Iolet::hitTest(int x, int y)
void Iolet::mouseDrag(MouseEvent const& e)
{
// Ignore when locked or if middlemouseclick?
if (locked || e.mods.isMiddleButtonDown() || (patchDownwardsOnly && isInlet))
if (locked || commandLocked || e.mods.isMiddleButtonDown() || (patchDownwardsOnly && isInlet))
return;

if (!cnv->connectionCancelled && cnv->connectionsBeingCreated.empty() && e.getLengthOfMousePress() > 100) {
Expand Down Expand Up @@ -165,7 +165,7 @@ void Iolet::mouseDrag(MouseEvent const& e)

void Iolet::mouseUp(MouseEvent const& e)
{
if (locked || e.mods.isRightButtonDown())
if (locked || commandLocked || e.mods.isRightButtonDown())
return;

bool wasDragged = e.mouseWasDraggedSinceMouseDown();
Expand Down

0 comments on commit 9557cea

Please sign in to comment.