feat(package/interface/menu): onClose keyPressed

This commit is contained in:
BerkieBb authored and GitHub committed 2022-09-25 14:25:26 +02:00
1 parent 6579d52c7c
commit c47741a785
1 file changed
+2 -1
+2 -1
View File
@@ -18,7 +18,8 @@ interface MenuProps {
options: MenuOptions[];
position?: MenuPosition;
disableInput?: boolean;
onClose?: () => void;
canClose?: boolean;
onClose?: (keyPressed?: 'Escape' | 'Backspace') => void;
onSelected?: ChangeFunction;
onSideScroll?: ChangeFunction;
}