start onboarding tour after pressing escape button

pull/8356/head
bsatarnejad 5 years ago
parent 25fe611452
commit 89f4333b3a
  1. 7
      app/assets/javascripts/onboarding/onboarding_tour.js

@ -45,6 +45,13 @@
$('.op-modal--modal-close-button').click(function () {
homescreenTour();
});
//Start automatically when the escape button is pressed
$(document).on('keydown', function(event) {
if (event.key == "Escape") {
homescreenTour();
}
});
}
// ------------------------------- Tutorial Homescreen page -------------------------------

Loading…
Cancel
Save