Skip to content

Commit 48f5b57

Browse files
Explicitly schedule frame on secondary click. (singerdmx#2507)
* Explicitly schedule frame on secondary click to ensure context menu is shown on Windows * chore(changelog): super nit --------- Co-authored-by: Ellet <[email protected]>
1 parent 0a1b00e commit 48f5b57

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
1111
## [Unreleased]
1212

13+
### Fixed
14+
15+
- Explicitly schedule frame on secondary click to ensure context menu is shown on Windows [#2507](https://github.com/singerdmx/flutter-quill/pull/2507).
16+
1317
## [11.1.0] - 2025-03-11
1418

1519
### Fixed

lib/src/editor/editor.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ class _QuillEditorSelectionGestureDetectorBuilder
575575
SchedulerBinding.instance.addPostFrameCallback((_) {
576576
super.onSecondarySingleTapUp(details);
577577
});
578+
SchedulerBinding.instance.scheduleFrame();
578579
} else {
579580
super.onSecondarySingleTapUp(details);
580581
}

lib/src/editor/widgets/delegate.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class EditorTextSelectionGestureDetectorBuilder {
205205
editor!.showToolbar();
206206
}
207207
});
208+
SchedulerBinding.instance.scheduleFrame();
208209
}
209210

210211
/// Handler for [EditorTextSelectionGestureDetector.onSingleTapCancel].

0 commit comments

Comments
 (0)