codeditor: changing the brace insertion behavior, fixes 197