• Renzo Olivares's avatar
    Selection area right click behavior should match native (#128224) · b36ef583
    Renzo Olivares authored
    This change updates `SelectableRegion`s right-click gesture to match native platform behavior.
    
    Before: Right-click gesture selects word at position and opens context menu (All Platforms)
    After: 
    - Linux, toggles context menu on/off, and collapses selection when click was not on an active selection (uncollapsed).
    - Windows, Android, Fuchsia, shows context menu at right-clicked position (unless the click is at an active selection).
    - macOS, toggles the context menu if right click was at the same position as the previous / or selects word at position and opens context menu.
    - iOS, selects word at position and opens context menu.
    
    This change also prevents the `copy` menu button from being shown when there is a collapsed selection (nothing to copy).
    
    Fixes #117561
    b36ef583
Name
Last commit
Last update
.github Loading commit data...
.vscode Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.ci.yaml Loading commit data...
.cirrus.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
TESTOWNERS Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...