added enter keyboard for devmode

This commit is contained in:
PhilReact 2024-11-10 17:33:01 +02:00
parent 622fa1f98e
commit 89c33fb7bc

View File

@ -127,6 +127,11 @@ export const AppsDevModeHome = ({
open={isShow} open={isShow}
aria-labelledby="alert-dialog-title" aria-labelledby="alert-dialog-title"
aria-describedby="alert-dialog-description" aria-describedby="alert-dialog-description"
onKeyDown={(e) => {
if (e.key === 'Enter' && domain && port) {
onOk({ portVal: port, domainVal: domain });
}
}}
> >
<DialogTitle id="alert-dialog-title"> <DialogTitle id="alert-dialog-title">
{"Add custom framework"} {"Add custom framework"}
@ -155,7 +160,6 @@ export const AppsDevModeHome = ({
}} }}
> >
<Label>Port</Label> <Label>Port</Label>
<Input <Input
placeholder="Port" placeholder="Port"
value={port} value={port}
@ -177,6 +181,7 @@ export const AppsDevModeHome = ({
</Button> </Button>
</DialogActions> </DialogActions>
</Dialog> </Dialog>
)} )}
</> </>
); );