fix(client): listen for ctrl/cmd + enter on fill-in-the-blanks (#52544)

This commit is contained in:
Oliver Eyton-Williams
2023-12-14 16:57:26 +01:00
committed by GitHub
parent a93add831e
commit d380918365
@@ -317,7 +317,9 @@ class ShowFillInTheBlank extends Component<
<Spacer size='medium' />
<h2>{t('learn.fill-in-the-blank')}</h2>
<Spacer size='small' />
<ObserveKeys>
{/* 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 */}
<ObserveKeys only={['ctrl', 'cmd', 'enter']}>
<div>
<p>
{splitSentence.map((s, i) => {