Skip to content

Commit 7b0a0f2

Browse files
committed
changed "hotkeys" option to "useHotkeys"
1 parent 169779e commit 7b0a0f2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To configure on a tour declaration, use `ui-tour-<option-name>="optionValue"`
5858
| backdropZIndex | number | 10000 | Z-index of the backdrop. Popups will be positioned relative to this. |
5959
| templateUrl | string | "tour-step-template.html" | Used as the template for the contents of the popup (see Angular UI Tooltip docs). |
6060
| useUiRouter | boolean | false | When navigating with nextPath and prevPath (see below), use UI Router states instead of Angular paths. |
61-
| hotkeys | boolean | false | Allows the use of right/left keyboard keys to navigate through steps, and esc key to end the tour. |
61+
| useHotkeys | boolean | false | Allows the use of right/left keyboard keys to navigate through steps, and esc key to end the tour. |
6262
| | | | |
6363
| onReady | function | null | Called when tour is initialized and attached to the scope |
6464
| onStart | function | null | Called when tour is started, before first popup is shown |

app/tour-config-provider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
scrollOffset: 100,
2020
scrollIntoView: true,
2121
useUiRouter: false,
22-
hotkeys: false,
22+
useHotkeys: false,
2323

2424
onStart: null,
2525
onEnd: null,

app/tour-controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@
405405
setCurrentStep(step);
406406
tourStatus = statuses.ON;
407407
self.emit('started', step);
408-
if (options.hotkeys) {
408+
if (options.useHotkeys) {
409409
setHotKeys();
410410
}
411411
return self.showStep(getCurrentStep());
@@ -431,7 +431,7 @@
431431
self.emit('ended');
432432
tourStatus = statuses.OFF;
433433

434-
if (options.hotkeys) {
434+
if (options.useHotkeys) {
435435
unsetHotKeys();
436436
}
437437

app/tour-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
name: attrs.uiTour
1717
},
1818
events = 'onReady onStart onEnd onShow onShown onHide onHidden onNext onPrev onPause onResume'.split(' '),
19-
properties = 'placement animation popupDelay closePopupDelay enable appendToBody tooltipClass orphan backdrop scrollOffset scrollIntoView useUiRouter hotkeys'.split(' ');
19+
properties = 'placement animation popupDelay closePopupDelay enable appendToBody tooltipClass orphan backdrop scrollOffset scrollIntoView useUiRouter useHotkeys'.split(' ');
2020

2121
//Pass interpolated values through
2222
TourHelpers.attachInterpolatedValues(attrs, tour, properties, 'uiTour');

0 commit comments

Comments
 (0)