File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## 9.3.0
6
6
* Breaking change: ` Document.fromHtml(html) ` is now returns ` Document ` instead of ` Delta ` , use ` DeltaX.fromHtml ` to return ` Delta `
7
+ * Update old deprecated api from Flutter 3.19
7
8
8
9
## 9.2.14
9
10
* feat: move cursor after inserting video/image
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/foundation.dart' show kIsWeb;
2
2
import 'package:flutter/material.dart' ;
3
- import 'package:flutter/services.dart' ;
4
3
import 'package:flutter_bloc/flutter_bloc.dart' ;
5
4
import 'package:flutter_localizations/flutter_localizations.dart'
6
5
show
Original file line number Diff line number Diff line change @@ -453,11 +453,10 @@ class _QuillEditorSelectionGestureDetectorBuilder
453
453
}
454
454
455
455
bool isShiftClick (PointerDeviceKind deviceKind) {
456
+ final pressed = HardwareKeyboard .instance.logicalKeysPressed;
456
457
return deviceKind == PointerDeviceKind .mouse &&
457
- (HardwareKeyboard .instance
458
- .isLogicalKeyPressed (LogicalKeyboardKey .shiftLeft) ||
459
- HardwareKeyboard .instance
460
- .isLogicalKeyPressed (LogicalKeyboardKey .shiftRight));
458
+ (pressed.contains (LogicalKeyboardKey .shiftLeft) ||
459
+ pressed.contains (LogicalKeyboardKey .shiftRight));
461
460
}
462
461
463
462
@override
@@ -740,10 +739,10 @@ class RenderEditor extends RenderEditableContainerBox
740
739
}
741
740
742
741
bool get _shiftPressed =>
743
- HardwareKeyboard .instance
744
- .isLogicalKeyPressed (LogicalKeyboardKey .shiftLeft) ||
745
- HardwareKeyboard .instance
746
- .isLogicalKeyPressed (LogicalKeyboardKey .shiftRight);
742
+ HardwareKeyboard .instance.logicalKeysPressed
743
+ .contains (LogicalKeyboardKey .shiftLeft) ||
744
+ HardwareKeyboard .instance.logicalKeysPressed
745
+ .contains (LogicalKeyboardKey .shiftRight);
747
746
748
747
void setStartHandleLayerLink (LayerLink value) {
749
748
if (_startHandleLayerLink == value) {
You can’t perform that action at this time.
0 commit comments