mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
feat(package/interface/menu): onClose keyPressed
This commit is contained in:
@@ -18,7 +18,8 @@ interface MenuProps {
|
|||||||
options: MenuOptions[];
|
options: MenuOptions[];
|
||||||
position?: MenuPosition;
|
position?: MenuPosition;
|
||||||
disableInput?: boolean;
|
disableInput?: boolean;
|
||||||
onClose?: () => void;
|
canClose?: boolean;
|
||||||
|
onClose?: (keyPressed?: 'Escape' | 'Backspace') => void;
|
||||||
onSelected?: ChangeFunction;
|
onSelected?: ChangeFunction;
|
||||||
onSideScroll?: ChangeFunction;
|
onSideScroll?: ChangeFunction;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user