From 5a98b857a148957295c204bef0a3986f3e99fb19 Mon Sep 17 00:00:00 2001
From: X Code <singerdmx@gmail.com>
Date: Sun, 19 Dec 2021 10:01:04 -0800
Subject: [PATCH] [2.5.1] Bug fix for Desktop `Shift` + `Click` support

---
 CHANGELOG.md                | 3 +++
 lib/src/widgets/editor.dart | 2 +-
 pubspec.yaml                | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index e788bef8..72e0794f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+## [2.5.1]
+* Bug fix for Desktop `Shift` + `Click` support.
+
 ## [2.5.0]
 * Update checkbox list.
 
diff --git a/lib/src/widgets/editor.dart b/lib/src/widgets/editor.dart
index 99b3500d..a6fb480d 100644
--- a/lib/src/widgets/editor.dart
+++ b/lib/src/widgets/editor.dart
@@ -842,7 +842,7 @@ class RenderEditor extends RenderEditableContainerBox
 
   bool get _shiftPressed =>
       RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.shiftLeft) ||
-      RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.shiftLeft);
+      RawKeyboard.instance.keysPressed.contains(LogicalKeyboardKey.shiftRight);
 
   void setStartHandleLayerLink(LayerLink value) {
     if (_startHandleLayerLink == value) {
diff --git a/pubspec.yaml b/pubspec.yaml
index cf78dc4b..b3200073 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
 name: flutter_quill
 description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
-version: 2.5.0
+version: 2.5.1
 #author: bulletjournal
 homepage: https://bulletjournal.us/home/index.html
 repository: https://github.com/singerdmx/flutter-quill