-
Notifications
You must be signed in to change notification settings - Fork 37k
terminal.copyOnSelection and terminalFindWidget - do not copy selection on focus #254065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terminal.copyOnSelection and terminalFindWidget - do not copy selection on focus #254065
Conversation
|
Want to note that the I will attempt to provide a solution for this under a separate PR. Figured it might be worth including here too as someone reviewing the PR might have some insight.
It appears the rendering done as a result of step 5 includes calling the |
|
Is there anything I can/need to do to get movement on this? |
|
Hi @kenherring Thanks much for looking into this! I'm not quite getting the difference between the first test case in this PR vs. the second test case. Is the difference just that you are doing |
|
@anthonykim1 You are correct. The first test case, which is resolved by this PR, involves using The second test case is not addressed by this PR and involves entering any key to add text to the terminal, which overwrites the clipboard when the added text causes a redrawing of the terminal. This does not have as clear of a solution and is something I'll be willing to dig deeper on in a future PR. |
|
Make sense, @kenherring Yeah, I think we should address that(the case you just mentioned) as well?? unless its expected behavior @Tyriar It seems like what is happening with that second case (after 'copying from clipboard'), and typing in terminal is that those selection triggered from the previous ctrl+f gets selected again and shows the blinks as well. |
|
This PR is still improvement as it prevents terminal find from overwriting more recent copy and paste from the editor when ctrl+f is triggered right away after clipboard from editor. Before this PR: focusBug.movAfter this PR: fixedFocus.mov |
Resolves #151902
Summary
This PR aims to fix a bug that appears to have been introduced with #230129. The function called on the next line was moved but the if statement to check for it's existence on the object was not updated. It does not appear that the line within the
ifstatement would ever be reached.Test Case
ctrl+fctrl+fto focus on the find widget.In testing I found that the clipboard is overwritten in step #4. It appears that the terminal fires a
onSelectionChangedeven though there is no change to the selection.