Reverted focus hack for Gecko.
Always focus editor when focusing widget because of editor's bug.
Removed already refactored code.
Removed code which we won't need.