fix bug where editor was not returned in setup-editor
common command key code