Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ui] [fix]: The focus on text components is now released on outside click#2740

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
nicolas-lambert-tc wants to merge1 commit intodevelop
base:develop
Choose a base branch
Loading
fromfix/focus-stealing

Conversation

@nicolas-lambert-tc
Copy link
Contributor

@nicolas-lambert-tcnicolas-lambert-tc commentedJun 5, 2025
edited
Loading

Description

Bug:

Clicking outside of a text component (a search filter in the example below), didn't release the focus.
Screenshot_2025-06-05_14-21-39

Now the focus is stolen by the main.MouseArea component

Related PR

This is an other approach of the PR provided by@waaake:#2666
It avoid creatingMouseArea on existing and future components.

Implementation Details

It uses the eventFilter to only catch the mousePress events and clear focus each time an item have a focus at this step.

/!\ Having a python condition on each event can be time consuming.
It uses theEventFilter and can have some performance cost, but because it directly filtered event by type()(not isinstance) , it should be imperceptible.

@codecov
Copy link

codecovbot commentedJun 5, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.15%. Comparing base(d5007c6) to head(6e35205).
Report is 49 commits behind head on develop.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@##           develop    #2740   +/-   ##========================================  Coverage    77.14%   77.15%           ========================================  Files           41       41             Lines         6165     6167    +2     ========================================+ Hits          4756     4758    +2  Misses        1409     1409

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • 📦JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nicolas-lambert-tcnicolas-lambert-tc marked this pull request as ready for reviewJune 5, 2025 12:28
@nicolas-lambert-tcnicolas-lambert-tc changed the title[ui] Fix: The focus on text components is now released on outside click[ui] [fix]: The focus on text components is now released on outside clickJun 5, 2025
@nicolas-lambert-tcnicolas-lambert-tcforce-pushed thefix/focus-stealing branch 5 times, most recently froma0bd696 tofeb8e0fCompareJune 5, 2025 13:34
Copy link
Member

@fabiencastanfabiencastan left a comment

Choose a reason for hiding this comment

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

Problem on copy/paste

@fabiencastanfabiencastan marked this pull request as draftJune 7, 2025 22:05
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabiencastanfabiencastanfabiencastan requested changes

@cbentejaccbentejacAwaiting requested review from cbentejac

@mh0gmh0gAwaiting requested review from mh0g

@servantftransperfectservantftransperfectAwaiting requested review from servantftransperfect

@waaakewaaakeAwaiting requested review from waaake

Requested changes must be addressed to merge this pull request.

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-lambert-tc@fabiencastan

[8]ページ先頭

©2009-2025 Movatter.jp