diff --git a/lib/oath/views/oath_screen.dart b/lib/oath/views/oath_screen.dart index 6bf95c47..a8e89bfb 100755 --- a/lib/oath/views/oath_screen.dart +++ b/lib/oath/views/oath_screen.dart @@ -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) {