Refresh file browser when window is focused, and hide doc popup on key down