mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-23 17:18:31 +00:00
fix: Presses shift + alt + arrow right to select a word
This commit is contained in:
parent
d7410cd6e8
commit
e08ab1fc10
1 changed files with 18 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ void main() async {
|
|||
);
|
||||
});
|
||||
|
||||
testWidgets('Presses shift + alt + arrow left to select a word',
|
||||
testWidgets('Presses shift + alt + arrow right to select a word',
|
||||
(tester) async {
|
||||
const text = 'Welcome to Appflowy 😁';
|
||||
final editor = tester.editor
|
||||
|
|
@ -416,6 +416,18 @@ void main() async {
|
|||
isShiftPressed: true,
|
||||
isAltPressed: true,
|
||||
);
|
||||
// < >
|
||||
expect(
|
||||
editor.documentSelection,
|
||||
selection.copyWith(
|
||||
end: Position(path: [0], offset: 11),
|
||||
),
|
||||
);
|
||||
await editor.pressLogicKey(
|
||||
LogicalKeyboardKey.arrowRight,
|
||||
isShiftPressed: true,
|
||||
isAltPressed: true,
|
||||
);
|
||||
// < Appflowy>
|
||||
expect(
|
||||
editor.documentSelection,
|
||||
|
|
@ -428,6 +440,11 @@ void main() async {
|
|||
isShiftPressed: true,
|
||||
isAltPressed: true,
|
||||
);
|
||||
await editor.pressLogicKey(
|
||||
LogicalKeyboardKey.arrowRight,
|
||||
isShiftPressed: true,
|
||||
isAltPressed: true,
|
||||
);
|
||||
// < Appflowy 😁>
|
||||
expect(
|
||||
editor.documentSelection,
|
||||
|
|
|
|||
Loading…
Reference in a new issue