Fixing a bug where the input area isn't focused when pref is hidden.