Skip to content

Menu Action closes when pressing Enter. #14071

Closed Answered by msujew
VilikNakhshikyan asked this question in General
Discussion options

You must be logged in to vote

Oh, ok. Please give a bit more context next time. We have some special handling for key events on dialogs. See:

protected handleEnter(event: KeyboardEvent): boolean | void {
if (event.target instanceof HTMLTextAreaElement) {
return false;
}
this.accept();
}

You will likely need to overwrite this method to change the behavior in your dialog.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@VilikNakhshikyan
Comment options

@msujew
Comment options

Answer selected by msujew
@VilikNakhshikyan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants