Commit ce993ba8 authored by Albert Gräf's avatar Albert Gräf
Browse files

Fix the Alt-click popup issue.

Fixes a residual regression with MR !528 (Findbox fixes) reported by
Joseph Gastelais, which causes temporary run mode to stick when opening
a subpatch using Alt-click (i.e., mouse click on the subpatch in
temporary run mode). Resolved using Jonathan's fake keyup trick.
parent c4495143
......@@ -383,6 +383,15 @@ var canvas_events = (function() {
(pointer_y + svg_view.y),
b, mod
// If Alt is pressed on a box_text, fake a keyup to prevent
// dangling temp runmode in case the click opens a subpatch.
// XXXFIXME: This will also end temporary runmode if the
// object being clicked is *not* a subpatch, so we might want
// to check for this -- I just don't know how to do that. -ag
if (evt.altKey &&"box_text")) {
pdgui.canvas_sendkey(name, 0, evt, "Alt", 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment