diff --git a/package/client/resource/interface/menu.ts b/package/client/resource/interface/menu.ts index 623aca61e..480ae1436 100644 --- a/package/client/resource/interface/menu.ts +++ b/package/client/resource/interface/menu.ts @@ -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; }