sc ide: sc editor - improve inserting newline with ENTER and curly brackets

Signed-off-by: Yvan Volochine <yvan.volochine@gmail.com>