Allow for specifying whether to select the search input content when activated #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "add-search-config-to-select-search-input-content-on-activation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prior to this change, when I used the search panel multiple times in the same document the previous search input wouldn't be cleared when I hit Cmd+F.
This patch addresses this problem by adding a "select" option to the search config.
Steps to demo intended behavior
Adding the option "select" means that the previous content "foo" is selected by default when focusing on the search input with Cmd+f, so typing "bar" overrides the previous input.
I'm actually fine with this being the default and only behavior. But, interestingly, it already works this way for me on Chrome and Firefox (focusing the input selects its content). Which browser are you using (or which specific actions do you perform) where it doesn't select the content?
Interesting. I use CodeMirror inside Electron.
I believe we should make it behave the same across all platforms. Making it select by default sounds right to me, since it's definitely the most common search input behavior across platforms and apps.
I'll update this patch.