From 8bc5b0a31074e7792370da83fe758551ba2fa0f4 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Sun, 26 Jun 2022 19:23:46 +0200 Subject: [PATCH] fix: show completion modal (#46589) * fix: make ctrl/cmd + enter trigger modal Multifile projects should be handled like legacy challenges in this regard. * test: check modal appears * refactor: ignore additional solutions * test: fix ctrl + enter tests * fix: only run on electron * fix: remove log * fix: show completion modal if instructions focused * fix: handle undefined challengeType --- .../Challenges/classic/editor-tabs.tsx | 1 + .../templates/Challenges/classic/editor.tsx | 4 +- .../Challenges/classic/multifile-editor.tsx | 7 ++- .../src/templates/Challenges/classic/show.tsx | 1 + .../Challenges/components/Hotkeys.tsx | 9 +++- client/utils/challenge-types.js | 6 +-- .../integration/learn/challenges/projects.js | 48 +++++++++++++++++++ 7 files changed, 69 insertions(+), 7 deletions(-) diff --git a/client/src/templates/Challenges/classic/editor-tabs.tsx b/client/src/templates/Challenges/classic/editor-tabs.tsx index 59ee717f66f..0c26fd0c589 100644 --- a/client/src/templates/Challenges/classic/editor-tabs.tsx +++ b/client/src/templates/Challenges/classic/editor-tabs.tsx @@ -44,6 +44,7 @@ class EditorTabs extends Component {