mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-23 19:37:52 +00:00
added enter keyboard for devmode
This commit is contained in:
parent
622fa1f98e
commit
89c33fb7bc
@ -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>
|
||||||
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user