mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): listen for ctrl/cmd + enter on fill-in-the-blanks (#52544)
This commit is contained in:
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) => {
|
||||
|
||||
Reference in New Issue
Block a user