This commit is contained in:
Elias Bonnici 2024-02-07 13:06:02 +01:00
commit 4461d93f94
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF

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) {