Correct a problem when setting focus.
Unify the actions to take before leaving.
Get help in multiple languages.

This commit closes #1864.