Fix crash if incorrect editor is set

For some unknown reason the deleted editor object seems to accesses from
Qt's event loop.

Fixes #281
Don't escape characters in editor command
Set focus to command editor if help is hidden (F1)