Canvas: a link reads its own right-click after the page's right-click handling (merge regression of red6 g1+g6)

This commit is contained in:
Dylan M. Taylor
2026-11-19 10:32:56 -05:00
parent 22271917eb
commit f11f16c571
+4 -1
View File
@@ -1062,7 +1062,10 @@ fn route_press(
}
// Add text's menu is the page's.
session.menu_for = menu_for.filter(|_| !(cx.tool == QuickTool::AddText && cx.can_modify));
return;
// A link reads its own right-click too: its context event selects it for the Link tool's menu.
if !matches!(press.owner, Owner::Link { .. } | Owner::TextLink { .. }) {
return;
}
}
let clicked = matches!(press.phase, PressPhase::Release { click: true, .. });
// A press a part takes is no picture pick, and takes back an earlier click whose picture is still being found.