Skip to content
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

Find/replace overlay: allow pasting into replace input field #2509 #2513

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

HeikoKlare
Copy link
Contributor

@HeikoKlare HeikoKlare commented Nov 11, 2024

While actions of the target editor are properly deactivated when the find input field of the FindReplaceOverlay has focus, the same does not happen for the replace input field. In consequence, for example, you cannot paste clipboard content into the replace input field via the according keyboard shortcut (CTRL+V).

With this change, the functionality to deactivate target editor actions is also applied when the the replace input field has focus, in addition to the find input field.

Contributes to #2509

Demo

Behavior before fix:
findreplace_insert_replace_before

Behavior after fix:
findreplace_insert_replace_after

Copy link
Contributor

github-actions bot commented Nov 11, 2024

Test Results

 1 802 files   -  19   1 802 suites   - 19   1h 55m 44s ⏱️ + 6m 19s
 7 725 tests ±  0   7 497 ✅ ±  0  228 💤 ±0  0 ❌ ±0 
23 977 runs   - 359  23 236 ✅  - 353  741 💤  - 6  0 ❌ ±0 

Results for commit 7e9c897. ± Comparison against base commit 7ae2005.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review November 11, 2024 18:50
@BeckerWdf
Copy link
Contributor

Contributes to #2509

This reported issue from #2509 still exists with this PR.

@HeikoKlare
Copy link
Contributor Author

Contributes to #2509

This reported issue from #2509 still exists with this PR.

This PR does not completely fix #2509. It just fixes pasting into the replace field for non-multipage-editors (for which I added an additional comment to #2509). Probably I should have opened a separate issue for that, but I first though they are highly related, as they are all about pasting into the overlay (and using other shortcuts).

@HeikoKlare
Copy link
Contributor Author

In my opinion, this should be fixed for the upcoming release, as it is quite annoying to not be able to use common shortcuts to cut, copy, paste etc. in the replace input field of the find/replace overlay.

@akurtakov @vogella may I ask for the PMC approval of one of you (or any other PMC member) to still merge this?

@akurtakov
Copy link
Member

I haven't reviewed the actual code change nor tested it but the issue looks important enough to worth PMC +1 from me for RC1.

@akurtakov
Copy link
Member

akurtakov commented Nov 12, 2024

Code change looks good. Please push when verifications succeed.

…platform#2509

While actions of the target editor are properly deactivated when the
find input field of the FindReplaceOverlay has focus, the same does not
happen for the replace input field. In consequence, for example, you
cannot paste clipboard content into the replace input field via the
according keyboard shortcut (CTRL+V).

With this change, the functionality to deactivate target editor actions
is also applied when the the replace input field has focus, in addition
to the find input field.

Contributes to
eclipse-platform#2509
@HeikoKlare
Copy link
Contributor Author

Thank you!

@HeikoKlare HeikoKlare merged commit 64af72a into eclipse-platform:master Nov 12, 2024
16 of 17 checks passed
@HeikoKlare HeikoKlare deleted the issue-2509-1 branch November 12, 2024 15:41
@HeikoKlare HeikoKlare added the pmc_approved Issues with PMC approval label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pmc_approved Issues with PMC approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants