Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- **[Web]** Remove unnecessary `KeyboardListener` that was causing an extra Tab stop in focus traversal, improving keyboard navigation efficiency.

## [11.4.2] - 2025-07-22

### Fixed
Expand Down
18 changes: 1 addition & 17 deletions lib/src/editor/editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class QuillEditorState extends State<QuillEditor>
),
);

final editor = selectionEnabled
return selectionEnabled
? _selectionGestureDetectorBuilder.build(
behavior: HitTestBehavior.translucent,
detectWordBoundary: config.detectWordBoundary,
Expand All @@ -339,22 +339,6 @@ class QuillEditorState extends State<QuillEditor>
quillMagnifierBuilder: config.quillMagnifierBuilder,
)
: child;

if (kIsWeb) {
// Intercept RawKeyEvent on Web to prevent it from propagating to parents
// that might interfere with the editor key behavior, such as
// SingleChildScrollView. Thanks to @wliumelb for the workaround.
// See issue https://github.com/singerdmx/flutter-quill/issues/304
return KeyboardListener(
onKeyEvent: (_) {},
focusNode: FocusNode(
onKeyEvent: (node, event) => KeyEventResult.skipRemainingHandlers,
),
child: editor,
);
}

return editor;
}

EmbedBuilder _getEmbedBuilder(Embed node) {
Expand Down
Loading