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

[Desktop] Remove contextual menu when selecting all #188

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

amantoux
Copy link
Member

@amantoux amantoux commented Dec 8, 2023

Fixes #186

@amantoux amantoux requested a review from Amir-P December 8, 2023 07:58
Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (416244c) 84.56% compared to head (4d46960) 84.68%.

Files Patch % Lines
packages/fleather/lib/src/widgets/editor.dart 93.75% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
+ Coverage   84.56%   84.68%   +0.11%     
==========================================
  Files          60       60              
  Lines        9620     9635      +15     
==========================================
+ Hits         8135     8159      +24     
+ Misses       1485     1476       -9     

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

@amantoux amantoux force-pushed the fix/ramanent_contextual_menu branch from 93f60bf to 2fb7582 Compare December 8, 2023 08:10
@amantoux amantoux force-pushed the fix/ramanent_contextual_menu branch from 2fb7582 to 4d46960 Compare December 8, 2023 08:28
case TargetPlatform.fuchsia:
case TargetPlatform.linux:
case TargetPlatform.windows:
bringIntoView(textEditingValue.selection.extent);
Copy link
Member

Choose a reason for hiding this comment

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

Is there any reason we don't call bringIntoView on iOS and macOS? @amantoux

Copy link
Member Author

@amantoux amantoux Dec 8, 2023

Choose a reason for hiding this comment

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

It's how it is implemented in Flutter
Didn't dig further but it is the observed behavior on TextField on macOS

@amantoux amantoux requested a review from Amir-P December 8, 2023 15:05
Copy link
Member

@Amir-P Amir-P left a comment

Choose a reason for hiding this comment

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

LGTM.

@amantoux amantoux merged commit c21a6c1 into master Dec 8, 2023
4 checks passed
@amantoux amantoux deleted the fix/ramanent_contextual_menu branch December 8, 2023 18:19
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.

[Desktop] Selecting all in contextual menu doesn't remove menu
2 participants