Only overwrite Ctrl-f when text is focussed#988
Conversation
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
|
Code looks good to me. 🧐 Minor nitpick: Maybe put the plugin into a separate class like |
azul
left a comment
There was a problem hiding this comment.
Confirmed that it fixes the issue in files.
Keeps using browser search when opening a file in the viewer and looking at the sidebar. I think that is the behavior we want.
I have not played with this in talk.
|
/backport 52a20e2 to stable19 |
|
/backport 52a20e2 to stable18 |
Summary
Otherwise the unified search does not trigger properly if a rich workspace is shown. With this PR the browser default search will be only triggered by text if the keydown event is triggered on the editor input.
Using the regular fallback with hitting Ctrl-F twice would not work here since when editing in the viewer the unified search is hidden in the background and therefore the user doesn't get any feedback when hitting ctrl-f for the first time. Also when having the text focused I think that searching in it is a sane default.