From bc93e254f70a685f373f94f850d17bd1b35a9fd3 Mon Sep 17 00:00:00 2001 From: alexfiftysix Date: Thu, 13 Aug 2020 10:40:41 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#46649=20react-imag?= =?UTF-8?q?e-gallery:=20Update=20'disableArrowKeys'=20to=20'disableKeyDown?= =?UTF-8?q?'=20by=20@alexfiftysix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * change from `disableArrowKeys` to `disableKeyDown` * Update tests * Update version number Co-authored-by: Alex Miller --- types/react-image-gallery/index.d.ts | 4 ++-- types/react-image-gallery/react-image-gallery-tests.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/types/react-image-gallery/index.d.ts b/types/react-image-gallery/index.d.ts index c7de219cf9..6f6d8616b4 100644 --- a/types/react-image-gallery/index.d.ts +++ b/types/react-image-gallery/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-image-gallery 0.9 +// Type definitions for react-image-gallery 1.0 // Project: https://github.com/xiaolin/react-image-gallery // Definitions by: Adam Webb // William Tio @@ -49,7 +49,7 @@ export interface ReactImageGalleryProps { showPlayButton?: boolean; showFullscreenButton?: boolean; disableThumbnailScroll?: boolean; - disableArrowKeys?: boolean; + disableKeyDown?: boolean; disableSwipe?: boolean; useBrowserFullscreen?: boolean; preventDefaultTouchmoveEvent?: boolean; diff --git a/types/react-image-gallery/react-image-gallery-tests.tsx b/types/react-image-gallery/react-image-gallery-tests.tsx index 0120da4a26..cf82a89f82 100644 --- a/types/react-image-gallery/react-image-gallery-tests.tsx +++ b/types/react-image-gallery/react-image-gallery-tests.tsx @@ -38,7 +38,8 @@ class ImageGallery extends React.Component { items: [galleryItem], autoPlay: false, showFullscreenButton: false, - renderThumbInner: this.renderThumbInner + renderThumbInner: this.renderThumbInner, + disableKeyDown: false }; return this.gallery = r} {...props} />;