<div dir="ltr">Hi, I'm trying to add a Lua scripting feature for my external which will allow users to write and run Lua scripts directly in pd as object arguments similar to how [expr] object works.<div><br></div><div>But the problem is curly brackets are used for table literals (e.g. a = {1, 2, 3}) in Lua, so it is not possible to create tables using this method.</div><div>I could only use '{' and '}' by editing the patch with a text editor, then reopening the patch in Pd.</div><div><br></div><div>I found this code inside canvas_key() function from "g_editor.c" file.</div><div><br></div><div><div>if (keynum == '\\' || keynum == '{' || keynum == '}')</div><div>    {</div><div>        post("keycode %d: dropped", (int)keynum);</div><div>        return;</div><div>    }</div></div><div><br></div><div>I would like to know why these 3 characters are not allowed in Pd.</div><div>Would there be any problem if we remove the above code from Pd?</div><div>Thanks!</div><div><br></div><div>Best regards,</div><div>Zack</div><div><br></div><div><br></div></div>