Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: filter keydownevents in actions handler (#4817)
Mathias Mogensenb087a9aeb343
diff --git a/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dart b/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dartindex 6f8babf22f..da04567fcc 100644--- a/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dart+++ b/frontend/appflowy_flutter/lib/plugins/inline_actions/widgets/inline_actions_handler.dart@@ -1,3 +1,6 @@+import 'package:flutter/material.dart';+import 'package:flutter/services.dart';+import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/inline_actions/inline_actions_menu.dart';import 'package:appflowy/plugins/inline_actions/inline_actions_result.dart';@@ -7,8 +10,6 @@ import 'package:appflowy_editor/appflowy_editor.dart';import 'package:collection/collection.dart';import 'package:easy_localization/easy_localization.dart';import 'package:flowy_infra_ui/style_widget/text.dart';-import 'package:flutter/material.dart';-import 'package:flutter/services.dart';/// All heights are in physical pixelsconst double _groupTextHeight = 14; // 12 height + 2 bottom spacing@@ -208,6 +209,10 @@ class _InlineActionsHandlerState extends State<InlineActionsHandler> {results[groupIndex].results[handlerIndex];KeyEventResult onKeyEvent(focus, KeyEvent event) {+ if (event is! KeyDownEvent) {+ return KeyEventResult.ignored;+ }+const moveKeys = [LogicalKeyboardKey.arrowUp,LogicalKeyboardKey.arrowDown,