Filter on the selected text if any when opening the panel.
Focus the filter field and select its value when opening the panel, and return focus to the editor when closing the panel.