From 32abb710b4380c928b950ba90dd98ec764dcfea7 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 29 Jul 2015 21:34:23 -0400 Subject: [PATCH] if a box is being edited when editmode changes, try to instantiate the box first --- pd/nw/pd_canvas.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pd/nw/pd_canvas.html b/pd/nw/pd_canvas.html index 4a1cb0ab8..6ae2d9904 100644 --- a/pd/nw/pd_canvas.html +++ b/pd/nw/pd_canvas.html @@ -775,7 +775,10 @@ function nw_create_patch_window_menus (name) { editMenu.append(new nw.MenuItem({ label: l('menu.editmode'), - click: function() { pdgui.pdsend(name + " editmode 0"); }, + click: function() { + check_box_for_text(); + pdgui.pdsend(name + " editmode 0"); + }, key: 'e', modifiers: "ctrl", tooltip: l('menu.editmode_tt') -- GitLab