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: close when escape is pressed in the editor #2044

Conversation

Wittmaxi
Copy link

@Wittmaxi Wittmaxi commented Jul 6, 2024

When escape is pressed inside of the editor which is targeted by the find/replace overlay, the overly now closes.

fixes #2033

23

@Wittmaxi Wittmaxi force-pushed the MW_close_overlay_even_if_in_editor branch from 1ca070c to 33ea742 Compare July 6, 2024 09:21
Copy link
Contributor

github-actions bot commented Jul 6, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 34m 32s ⏱️ + 2m 10s
 7 663 tests ±0   7 435 ✅ +1  228 💤 ±0  0 ❌  - 1 
24 150 runs  ±0  23 401 ✅ +1  749 💤 ±0  0 ❌  - 1 

Results for commit 816c687. ± Comparison against base commit e786511.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as expected and, in my opinion, significantly improves user experience 👍

The implementation looks sound. I was just thinking whether there might be situations in which adding a key listener to the target widget/editor could lead to some kind of key-handling conflicts, but since it's just a listener, I don't see a risk for that to happen.

@Wittmaxi Wittmaxi force-pushed the MW_close_overlay_even_if_in_editor branch from 33ea742 to 03eaebe Compare July 6, 2024 11:58
When escape is pressed inside of the editor which is targeted by the
find/replace overlay, the overlay now closes.

fixes eclipse-platform#2033
@HeikoKlare HeikoKlare force-pushed the MW_close_overlay_even_if_in_editor branch from 03eaebe to 816c687 Compare July 6, 2024 13:47
@HeikoKlare HeikoKlare merged commit 742846b into eclipse-platform:master Jul 6, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Find/Replace Overlay: Close by escape even when in editor
2 participants