Enter key handling for dialogs.

This commit is contained in:
Robin Davies
2024-10-08 04:20:37 -04:00
parent ebe56f4df9
commit a8061a6d15
31 changed files with 131 additions and 49 deletions
+10 -3
View File
@@ -393,8 +393,10 @@ const JackServerSettingsDialog = withStyles(styles)(
}
handleApply() {
this.props.onApply(this.state.jackServerSettings.clone());
if (this.state.okEnabled)
{
this.props.onApply(this.state.jackServerSettings.clone());
}
};
render() {
@@ -422,7 +424,12 @@ const JackServerSettingsDialog = withStyles(styles)(
let bufferCountDisabled = !selectedDevice;
return (
<DialogEx tag="jack" onClose={handleClose} aria-labelledby="select-channels-title" open={open}>
<DialogEx tag="jack" onClose={handleClose} aria-labelledby="select-channels-title" open={open}
onEnterKey={() => {
this.handleApply();
}}
>
<DialogContent>
<div>
<FormControl className={classes.formControl}>