Skip to content

Commit

Permalink
feat(package/interface/menu): onClose keyPressed
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb authored Sep 25, 2022
1 parent 6579d52 commit c47741a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package/client/resource/interface/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c47741a

Please sign in to comment.