Commit 0e3cfba5 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix regression when editing boxes during window blurs

parent 88955836
......@@ -107,8 +107,10 @@ function nw_window_focus_callback() {
function nw_window_blur_callback(name) {
// Fake a mouseup event
pdgui.pdsend(name, "mouseup_fake");
// Fake a mouseup event to keep from getting a dangling selection box
if (canvas_events.get_state === "normal") {
pdgui.pdsend(name, "mouseup_fake");
// These three functions need to be inside canvas_events closure
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