mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: close emoji menu by ESC key (#4182)
This commit is contained in:
parent
890285bb7b
commit
f760e3d12a
@ -36,7 +36,8 @@ void showEmojiPickerMenu(
|
||||
final bottom = alignment == Alignment.bottomLeft ? offset.dy : null;
|
||||
|
||||
keepEditorFocusNotifier.increase();
|
||||
final emojiPickerMenuEntry = FullScreenOverlayEntry(
|
||||
late OverlayEntry emojiPickerMenuEntry;
|
||||
emojiPickerMenuEntry = FullScreenOverlayEntry(
|
||||
top: top,
|
||||
bottom: bottom,
|
||||
left: offset.dx,
|
||||
@ -57,6 +58,7 @@ void showEmojiPickerMenu(
|
||||
},
|
||||
onExit: () {
|
||||
// close emoji panel
|
||||
emojiPickerMenuEntry.remove();
|
||||
},
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user