Do nothing if there is no focused editor. (For example, if the cursor is in the find/replace bar.)