From 6828b96902d0da3528a9a872005864f457a6e4d6 Mon Sep 17 00:00:00 2001 From: Martijn van der Lee Date: Tue, 7 Nov 2017 11:43:20 +0100 Subject: [PATCH] Added keyboard ESC to end tour According to issue log, the ESC key was added years ago but has since gone missing. --- src/coffee/bootstrap-tour.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/coffee/bootstrap-tour.coffee b/src/coffee/bootstrap-tour.coffee index eb11bd9c..cc681bba 100644 --- a/src/coffee/bootstrap-tour.coffee +++ b/src/coffee/bootstrap-tour.coffee @@ -627,6 +627,9 @@ when 37 e.preventDefault() @prev() if @_current > 0 + when 27 + e.preventDefault() + @end() # Checks if the result of a callback is a promise _makePromise: (result) ->