From a3a48cef477dc98f73c43c0671758837864a5a56 Mon Sep 17 00:00:00 2001 From: Micah Roberson Date: Wed, 14 Aug 2019 14:08:16 -0700 Subject: [PATCH] Bump focus-group --- lib/createManager.js | 8 ++++++-- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lib/createManager.js b/lib/createManager.js index 7110985..e527cea 100644 --- a/lib/createManager.js +++ b/lib/createManager.js @@ -5,8 +5,12 @@ function Manager(options) { var focusGroupOptions = { wrap: true, - forwardArrows: ['down', 'right'], - backArrows: ['up', 'left'], + keybindings: { + // down, right + next: [{ keyCode: 40 }, { keyCode: 39 }], + // up, left + prev: [{ keyCode: 38 }, { keyCode: 37 }], + }, stringSearch: options.letterNavigation, }; diff --git a/package-lock.json b/package-lock.json index 810daa9..3265a40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-aria-tabpanel", - "version": "4.3.0", + "version": "4.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -2091,9 +2091,9 @@ } }, "focus-group": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/focus-group/-/focus-group-0.2.3.tgz", - "integrity": "sha1-lWoRJKFJX30PTy3UxhJQKr9KRfk=" + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/focus-group/-/focus-group-0.3.1.tgz", + "integrity": "sha1-4PMu2GsNq91v/OvfiY7LMuR/7c4=" }, "for-in": { "version": "1.0.2", diff --git a/package.json b/package.json index 13e1445..bb52ee6 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ ], "dependencies": { "create-react-class": "^15.6.2", - "focus-group": "^0.2.2", + "focus-group": "^0.3.1", "prop-types": "^15.6.0" }, "peerDependencies": {