mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-26 04:58:07 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user