Add a focus check for editor input fields.

Only auto-update fields if a cursor is not active in a field.

Fixes #2193.