Use same focus code for insertmode/editor