fix random bugs
Please merge this after merging Hugo's request: !498 (merged) And then after merging my previous 3 requests: !501 (merged) !502 (merged) !503 (merged)
fix bugs related to null div element by checking type and fix menuclose and allow shortcut while editing and fix garray being opened if the patch font size is different from the system font size and change the default font size to 10 and fix transform error in firefox and fix svg error when enter key is pressed while editing object box