We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
it's not possible to ctrl + enter to submit feedinput value.
Can't push the fix to repo, but it's quite simple as you might know :-)
private addKeyboardEventsToInput(): void { const input = this.getView().byId("newMessageInput"); // @ts-ignore input.onkeydown = (event: any) => { if (event.keyCode == 13 && (event.ctrlKey || event.metaKey)) { input.fireEvent("post", { value: input.getValue() }); input.setValue(""); event.preventDefault(); } }; }
The text was updated successfully, but these errors were encountered:
74bf739
No branches or pull requests
Hi,
it's not possible to ctrl + enter to submit feedinput value.
Can't push the fix to repo, but it's quite simple as you might know :-)
private addKeyboardEventsToInput(): void {
const input = this.getView().byId("newMessageInput");
// @ts-ignore
input.onkeydown = (event: any) => {
if (event.keyCode == 13 && (event.ctrlKey || event.metaKey)) {
input.fireEvent("post", { value: input.getValue() });
input.setValue("");
event.preventDefault();
}
};
}
The text was updated successfully, but these errors were encountered: