diff --git a/pd/nw/dialog_gatom.html b/pd/nw/dialog_gatom.html index 85d1e7732602b793cbb4470990db7bd459541250..a6a298dd928c0bca4719de3f976f07d365badf93 100644 --- a/pd/nw/dialog_gatom.html +++ b/pd/nw/dialog_gatom.html @@ -168,7 +168,7 @@ function substitute_space(arg) { } function strip_problem_chars(arg) { - var problem_chars = [";", ",", "{", "}", "\\"]; + var problem_chars = [";", ","/*, "{", "}"*/, "\\"]; var ret = arg; for(var i = 0; i < problem_chars.length; i++) { ret = ret.split(problem_chars[i]).join(""); diff --git a/pd/nw/dialog_iemgui.html b/pd/nw/dialog_iemgui.html index 84e1cae08115d7f8de2937716c8dce50f58a532e..d67ddf4714921f8ca574cae5de0b80456ea1d42a 100644 --- a/pd/nw/dialog_iemgui.html +++ b/pd/nw/dialog_iemgui.html @@ -346,7 +346,7 @@ function substitute_space(arg) { } function strip_problem_chars(arg) { - var problem_chars = [";", ",", "{", "}", "\\"], + var problem_chars = [";", ","/*, "{", "}"*/, "\\"], ret = arg, i; for(i = 0; i < problem_chars.length; i++) { diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index 8b9ef22077b89cb010cf9830783163290500e7f7..8237b099a6313db051445f2bfc7ef56612830297 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -49,7 +49,7 @@ function text_to_fudi(text) { text = text.replace(/(\$[0-9]+)/g, "\\$1"); // escape dollar signs text = text.replace(/(\$@)/g, "\\$@"); // escape special $@ sign text = text.replace(/(?!\\)(,|;)/g, " \\$1 "); // escape "," and ";" - text = text.replace(/\{|\}/g, ""); // filter "{" and "}" + //text = text.replace(/\{|\}/g, ""); // filter "{" and "}" text = text.replace(/\u0020+/g, " "); // filter consecutive ascii32 return text; } diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 9a92edb63ada5459a52c131086658ed5b45c554f..4c4e5650388d1314836d1bee7b60ef2f67a24819 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -4946,7 +4946,7 @@ void canvas_key(t_canvas *x, t_symbol *s, int ac, t_atom *av) else gotkeysym = gensym("?"); //fflag = (av[0].a_type == A_FLOAT ? av[0].a_w.w_float : 0); keynum = (av[1].a_type == A_FLOAT ? av[1].a_w.w_float : 0); - if (keynum == '\\' || keynum == '{' || keynum == '}') + if (keynum == '\\' /*|| keynum == '{' || keynum == '}'*/) { post("keycode %d: dropped", (int)keynum); return;