@agnos-ui/core 0.9.0-next.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,11 +156,11 @@ const createCarousel = utils_widget.createWidgetFactory("carousel", (config) =>
|
|
|
156
156
|
const {
|
|
157
157
|
stores: { slideNodes$, ...emblaStores }
|
|
158
158
|
} = emblaCarousel;
|
|
159
|
-
const { directive: navDirective, refreshElements,
|
|
159
|
+
const { directive: navDirective, refreshElements, focusLeft, focusRight, focusFirst, focusLast } = services_navManager.createNavManager();
|
|
160
160
|
const navManagerConfig = {
|
|
161
161
|
keys: {
|
|
162
|
-
ArrowLeft:
|
|
163
|
-
ArrowRight:
|
|
162
|
+
ArrowLeft: focusLeft,
|
|
163
|
+
ArrowRight: focusRight,
|
|
164
164
|
Home: focusFirst,
|
|
165
165
|
End: focusLast
|
|
166
166
|
},
|
|
@@ -154,11 +154,11 @@ const createCarousel = createWidgetFactory("carousel", (config) => {
|
|
|
154
154
|
const {
|
|
155
155
|
stores: { slideNodes$, ...emblaStores }
|
|
156
156
|
} = emblaCarousel;
|
|
157
|
-
const { directive: navDirective, refreshElements,
|
|
157
|
+
const { directive: navDirective, refreshElements, focusLeft, focusRight, focusFirst, focusLast } = createNavManager();
|
|
158
158
|
const navManagerConfig = {
|
|
159
159
|
keys: {
|
|
160
|
-
ArrowLeft:
|
|
161
|
-
ArrowRight:
|
|
160
|
+
ArrowLeft: focusLeft,
|
|
161
|
+
ArrowRight: focusRight,
|
|
162
162
|
Home: focusFirst,
|
|
163
163
|
End: focusLast
|
|
164
164
|
},
|