Autofocus

fixes #2462

Add a ternary to indicate autofocus behavior based on the editor ID.