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
refactor: suggested changes
squidrye10b6b9e5adc7
diff --git a/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_widget.dart b/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_widget.dartindex 8af25c7325..a212692e20 100644--- a/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_widget.dart+++ b/frontend/appflowy_flutter/packages/appflowy_editor/lib/src/render/selection_menu/selection_menu_widget.dart@@ -339,15 +339,11 @@ class _SelectionMenuWidgetState extends State<SelectionMenuWidget> {newSelectedIndex -= 1;} else if (event.logicalKey == LogicalKeyboardKey.arrowDown) {newSelectedIndex += 1;- }else if (event.logicalKey == LogicalKeyboardKey.tab) {+ } else if (event.logicalKey == LogicalKeyboardKey.tab) {newSelectedIndex += widget.maxItemInRow;var currRow = (newSelectedIndex) % widget.maxItemInRow;if (newSelectedIndex >= _showingItems.length) {- if (currRow + 1 >= widget.maxItemInRow) {- newSelectedIndex = 0;- } else {- newSelectedIndex = (currRow + 1);- }+ newSelectedIndex = (currRow + 1) % widget.maxItemInRow;}}