Merge branch 'main' into test/otp-tests

This commit is contained in:
Joakim Troëng 2024-02-08 14:50:15 +01:00
commit 4543082bd9

View File

@ -375,6 +375,13 @@ class _UnlockedViewState extends ConsumerState<_UnlockedView> {
node.focusInDirection(TraversalDirection.down);
return KeyEventResult.handled;
}
if (event.logicalKey == LogicalKeyboardKey.escape) {
searchController.clear();
ref.read(searchProvider.notifier).setFilter('');
node.unfocus();
setState(() {});
return KeyEventResult.handled;
}
return KeyEventResult.ignored;
},
child: Builder(builder: (context) {