yet-another-react-lightbox 3.11.0 → 3.11.1

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1076,7 +1076,7 @@ function Controller({ children, ...props }) {
1076
1076
  React.useEffect(onViewCallback, [state.globalIndex, onViewCallback]);
1077
1077
  React.useEffect(() => cleanup(subscribe(ACTION_PREV, (action) => swipe({ direction: ACTION_PREV, ...action })), subscribe(ACTION_NEXT, (action) => swipe({ direction: ACTION_NEXT, ...action })), subscribe(ACTION_SWIPE, (action) => dispatch(action))), [subscribe, swipe, dispatch]);
1078
1078
  React.useEffect(() => subscribeSensors(EVENT_ON_KEY_UP, (event) => {
1079
- if (event.code === VK_ESCAPE) {
1079
+ if (event.key === VK_ESCAPE) {
1080
1080
  close();
1081
1081
  }
1082
1082
  }), [subscribeSensors, close]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yet-another-react-lightbox",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "Modern React lightbox component",
5
5
  "author": "Igor Danchenko",
6
6
  "license": "MIT",