Select search expression on Ctrl+F #7932
In virtually every IDE, if you hit
In contrast, in Jupyterlab, the content will not be selected, which leads to a frustrating user experience.
I suggest the behavior gets adjusted such that the search text is selected on
The text was updated successfully, but these errors were encountered:
Excellent idea, thanks for opening an issue.
Here is where, for example, the find is opened and focused:
Perhaps this "focusInput" method can be changed to select the text?
I think here is where the focusing actually happens, and what would need to change to select the text when focusing:
Lines 87 to 91 in ac4668c
Lines 83 to 85 in ac4668c
Setting this as a good first issue. Would you like to try submitting a PR?
Focus-with-select when focusing Search box (Issue jupyterlab#7932) https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement Old: `focus()` Focuses on the input element; keystrokes will subsequently go to this element. New: `select()` Selects all the text in the input element, and focuses it so the user can subsequently replace all of its content.