Skip to content

Commit

Permalink
feat: double click to start learn lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
wertiop121 authored and tsa96 committed Sep 3, 2023
1 parent 3e5faa3 commit 15f6e79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/pages/learn.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ class Learn {
panel.LoadLayoutSnippet('learn-list-lesson');
panel.SetDialogVariable('learn_lesson_name', lessonData['Name']);
panel.SetPanelEvent('onactivate', () => this.setSelectedLesson(modeName, lessonKey));
panel.SetPanelEvent('ondblclick', () => {
this.setSelectedLesson(modeName, lessonKey);
this.startCurrentLesson();
});
panel.FindChild('CompletionIcon').AddClass('learn-list__completion-icon--hidden'); // We can do these in the future
}

Expand Down

0 comments on commit 15f6e79

Please sign in to comment.