mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-24 20:07:51 +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}
|
||||
aria-labelledby="alert-dialog-title"
|
||||
aria-describedby="alert-dialog-description"
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' && domain && port) {
|
||||
onOk({ portVal: port, domainVal: domain });
|
||||
}
|
||||
}}
|
||||
>
|
||||
<DialogTitle id="alert-dialog-title">
|
||||
{"Add custom framework"}
|
||||
@ -155,7 +160,6 @@ export const AppsDevModeHome = ({
|
||||
}}
|
||||
>
|
||||
<Label>Port</Label>
|
||||
|
||||
<Input
|
||||
placeholder="Port"
|
||||
value={port}
|
||||
@ -177,6 +181,7 @@ export const AppsDevModeHome = ({
|
||||
</Button>
|
||||
</DialogActions>
|
||||
</Dialog>
|
||||
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user