Skip to content

Commit

Permalink
Update lib/src/editor/toolbar/items/link/link_menu.dart
Browse files Browse the repository at this point in the history
Co-authored-by: Mathias Mogensen <42929161+Xazin@users.noreply.github.com>
  • Loading branch information
vincenzoursano and Xazin committed May 23, 2023
1 parent 18339b8 commit 6daa812
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/src/editor/toolbar/items/link/link_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ class _LinkMenuState extends State<LinkMenu> {
return RawKeyboardListener(
focusNode: FocusNode(),
onKey: (key) {
if (key is! RawKeyDownEvent) {
return;
}
if (key.logicalKey == LogicalKeyboardKey.escape) {
if (key is RawKeyDownEvent && key.logicalKey == LogicalKeyboardKey.escape) {
widget.onDismiss();
}
},
Expand Down

0 comments on commit 6daa812

Please sign in to comment.