window: Note a caution and finally fix (albeit with ugly code) the annoying tab-switch-selects-all-in-ef behaviour