From d380918365cf7770849a242535fadfb6e6089885 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Thu, 14 Dec 2023 16:57:26 +0100 Subject: [PATCH] fix(client): listen for ctrl/cmd + enter on fill-in-the-blanks (#52544) --- client/src/templates/Challenges/fill-in-the-blank/show.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/templates/Challenges/fill-in-the-blank/show.tsx b/client/src/templates/Challenges/fill-in-the-blank/show.tsx index 175df668790..239c0c00180 100644 --- a/client/src/templates/Challenges/fill-in-the-blank/show.tsx +++ b/client/src/templates/Challenges/fill-in-the-blank/show.tsx @@ -317,7 +317,9 @@ class ShowFillInTheBlank extends Component<

{t('learn.fill-in-the-blank')}

- + {/* what we want to observe is ctrl/cmd + enter, but ObserveKeys is buggy and throws an error + if it encounters a key combination, so we have to pass in the individual keys to observe */} +

{splitSentence.map((s, i) => {