From 88a7f2c79910d18e23d95de9ecffd59eabef3fe8 Mon Sep 17 00:00:00 2001 From: carly-goodandbeautiful <127149340+carly-goodandbeautiful@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:08:21 -0600 Subject: [PATCH 1/2] Fixed tab editing when in readOnly mode (#1433) --- lib/src/widgets/raw_editor.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/widgets/raw_editor.dart b/lib/src/widgets/raw_editor.dart index 87a938bc..5c68111b 100644 --- a/lib/src/widgets/raw_editor.dart +++ b/lib/src/widgets/raw_editor.dart @@ -757,6 +757,9 @@ class RawEditorState extends EditorState controller.document.queryChild(controller.selection.baseOffset); KeyEventResult insertTabCharacter() { + if (widget.readOnly) { + return KeyEventResult.ignored; + } controller.replaceText(controller.selection.baseOffset, 0, '\t', null); _moveCursor(1); return KeyEventResult.handled; From 4b87821d3f6c5da5182a6f9d1be9f04a2bcf6a90 Mon Sep 17 00:00:00 2001 From: Cheryl Date: Wed, 18 Oct 2023 19:21:43 -0700 Subject: [PATCH 2/2] Upgrade version to 7.4.13 --- CHANGELOG.md | 5 ++++- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cd28c90..934e3513 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ +# [7.4.13] +- Fixed tab editing when in readOnly mode. + # [7.4.12] - Update the minimum version of device_info_plus to 9.1.0. -- + # [7.4.11] - Add sw locale. diff --git a/pubspec.yaml b/pubspec.yaml index b33fd406..459d9b92 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter. -version: 7.4.12 +version: 7.4.13 homepage: https://1o24bbs.com/c/bulletjournal/108 repository: https://github.com/singerdmx/flutter-quill