From 9ce5a09593d3aaad74780b51a81da6c55e9207d5 Mon Sep 17 00:00:00 2001 From: Hassaan Pasha Date: Tue, 13 Apr 2021 16:29:41 +0500 Subject: [PATCH] fix (client): added editor refs to all the instances of Editor to enable hotkey focus (#41757) --- client/src/templates/Challenges/classic/MultifileEditor.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/templates/Challenges/classic/MultifileEditor.js b/client/src/templates/Challenges/classic/MultifileEditor.js index 3c23acb08e..20ff71d63b 100644 --- a/client/src/templates/Challenges/classic/MultifileEditor.js +++ b/client/src/templates/Challenges/classic/MultifileEditor.js @@ -223,6 +223,7 @@ class MultifileEditor extends Component { description={targetEditor === 'indexjsx' ? description : null} fileKey='indexjsx' key='indexjsx' + ref={editorRef} resizeProps={resizeProps} theme={editorTheme} /> @@ -258,6 +259,7 @@ class MultifileEditor extends Component { description={targetEditor === 'indexcss' ? description : null} fileKey='indexcss' key='indexcss' + ref={editorRef} resizeProps={resizeProps} theme={editorTheme} /> @@ -275,6 +277,7 @@ class MultifileEditor extends Component { description={targetEditor === 'indexjs' ? description : null} fileKey='indexjs' key='indexjs' + ref={editorRef} resizeProps={resizeProps} theme={editorTheme} />