From c47741a7854ae68b852a6fc563fdbbb27bb9c975 Mon Sep 17 00:00:00 2001 From: BerkieBb <82737367+BerkieBb@users.noreply.github.com> Date: Sun, 25 Sep 2022 14:25:26 +0200 Subject: [PATCH] feat(package/interface/menu): onClose keyPressed --- package/client/resource/interface/menu.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }