When Ctrl+F is hit, search textfield is activated but its contents are unchanged and not selected so one has to write down the text to search. This patch is fixing this behaviour to match regular editor behaviour:
- selected text is put into the search textfield
- content of search textfield is selected
- if there is no selected text in editor, search textfield is activated and its existing content is selected