Fix answers not submitting on Control/Cmd-Return (#279)

This commit is contained in:
Karina Kwiatek 2022-01-11 22:32:43 +01:00 committed by GitHub
parent 29923fac84
commit 9eb34bf984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,6 +48,6 @@ export function answerEntryInputHandler(event: KeyboardEvent): void {
const inboxId = input.dataset.id; const inboxId = input.dataset.id;
if (event.keyCode == 13 && (event.ctrlKey || event.metaKey)) { if (event.keyCode == 13 && (event.ctrlKey || event.metaKey)) {
document.querySelector<HTMLButtonElement>(`button[name=ib-answer][data-ib-id=${inboxId}]`).click(); document.querySelector<HTMLButtonElement>(`button[name="ib-answer"][data-ib-id="${inboxId}"]`).click();
} }
} }