Fix answers not submitting on Control/Cmd-Return (#279)
This commit is contained in:
parent
29923fac84
commit
9eb34bf984
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue