Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JohannesKlauss/react-hotkeys-hook
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.3
Choose a base ref
...
head repository: JohannesKlauss/react-hotkeys-hook
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.4
Choose a head ref

Commits on Apr 17, 2020

  1. Copy the full SHA
    b1371de View commit details
  2. Merge pull request #261 from JohannesKlauss/renovate/gatsby-monorepo

    Update dependency gatsby-plugin-emotion to v4.2.2
    JohannesKlauss authored Apr 17, 2020
    Copy the full SHA
    b5c3425 View commit details

Commits on Apr 19, 2020

  1. Copy the full SHA
    82992b3 View commit details

Commits on Apr 20, 2020

  1. Merge pull request #262 from JohannesKlauss/renovate/jest-monorepo

    Update dependency jest to v25.4.0
    JohannesKlauss authored Apr 20, 2020
    Copy the full SHA
    6ed263e View commit details

Commits on Apr 30, 2020

  1. Copy the full SHA
    4455bb4 View commit details

Commits on May 5, 2020

  1. Copy the full SHA
    5386e96 View commit details

Commits on May 6, 2020

  1. Merge pull request #263 from JohannesKlauss/renovate/testing-library-…

    …react-10.x
    
    Update dependency @testing-library/react to v10.0.4
    JohannesKlauss authored May 6, 2020
    Copy the full SHA
    4d82339 View commit details
  2. Merge pull request #270 from JohannesKlauss/renovate/major-jest-monorepo

    Update dependency jest to v26
    JohannesKlauss authored May 6, 2020
    Copy the full SHA
    07d0b95 View commit details

Commits on May 18, 2020

  1. Copy the full SHA
    35fa0a9 View commit details

Commits on Jun 4, 2020

  1. Copy the full SHA
    3ece97b View commit details
  2. Copy the full SHA
    fc16b22 View commit details

Commits on Jun 6, 2020

  1. Copy the full SHA
    835d831 View commit details

Commits on Jun 12, 2020

  1. Update README to reflect lack of filter scoping

    See comments on #276
    louisrli authored Jun 12, 2020
    Copy the full SHA
    99e0b88 View commit details

Commits on Jun 17, 2020

  1. Copy the full SHA
    a347f1b View commit details

Commits on Jun 19, 2020

  1. Update babel monorepo

    renovate-bot committed Jun 19, 2020
    Copy the full SHA
    f4f20e4 View commit details

Commits on Jun 22, 2020

  1. Copy the full SHA
    608ef32 View commit details

Commits on Jun 23, 2020

  1. Copy the full SHA
    15aa4b8 View commit details
  2. Merge pull request #271 from JohannesKlauss/renovate/react-16.x

    Update dependency @types/react to v16.9.38
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    4f29735 View commit details
  3. Merge pull request #279 from JohannesKlauss/dependabot/npm_and_yarn/w…

    …ebsocket-extensions-0.1.4
    
    Bump websocket-extensions from 0.1.3 to 0.1.4
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    d049259 View commit details
  4. Merge pull request #278 from JohannesKlauss/renovate/testing-library-…

    …react-hooks-3.x
    
    Update dependency @testing-library/react-hooks to v3.3.0
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    5a69080 View commit details
  5. Merge pull request #272 from JohannesKlauss/renovate/typescript-3.x

    Update dependency typescript to v3.9.5
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    ee510eb View commit details
  6. Merge pull request #264 from JohannesKlauss/renovate/gatsby-monorepo

    Update dependency gatsby-plugin-emotion to v4.3.5
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    b59a6a0 View commit details
  7. Merge pull request #275 from JohannesKlauss/renovate/hotkeys-js-3.x

    Update dependency hotkeys-js to v3.8.1
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    9a7a457 View commit details
  8. Copy the full SHA
    d71f41e View commit details
  9. Copy the full SHA
    c36e7cd View commit details
  10. Copy the full SHA
    c8ae045 View commit details
  11. Merge pull request #280 from JohannesKlauss/renovate/jest-26.x

    Update dependency @types/jest to v26
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    fbb9889 View commit details
  12. Merge pull request #277 from JohannesKlauss/renovate/testing-library-…

    …react-10.x
    
    Update dependency @testing-library/react to v10.3.0
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    8a9c8c4 View commit details
  13. Merge pull request #265 from JohannesKlauss/renovate/react-dom-16.x

    Update dependency @types/react-dom to v16.9.8
    JohannesKlauss authored Jun 23, 2020
    Copy the full SHA
    242ebcb View commit details
  14. Copy the full SHA
    f64e579 View commit details

Commits on Jun 24, 2020

  1. Copy the full SHA
    b1f103d View commit details
  2. Copy the full SHA
    017d752 View commit details
  3. Merge pull request #286 from JohannesKlauss/renovate/react-16.x

    Update dependency @types/react to v16.9.41
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    84b8005 View commit details
  4. Merge pull request #285 from JohannesKlauss/renovate/gatsby-monorepo

    Update dependency gatsby-plugin-emotion to v4.3.6
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    fcaea03 View commit details
  5. Copy the full SHA
    86c2bd3 View commit details
  6. Merge pull request #284 from JohannesKlauss/renovate/testing-library-…

    …react-10.x
    
    Update dependency @testing-library/react to v10.4.1
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    2bcd371 View commit details
  7. Merge pull request #287 from JohannesKlauss/renovate/jest-26.x

    Update dependency @types/jest to v26.0.1
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    1235f63 View commit details
  8. Copy the full SHA
    c42c32b View commit details
  9. Copy the full SHA
    010ed5b View commit details
  10. Merge pull request #288 from JohannesKlauss/renovate/jest-26.x

    Update dependency @types/jest to v26.0.2
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    fe36ec1 View commit details
  11. Merge pull request #283 from JohannesKlauss/renovate/jest-monorepo

    Update dependency jest to v26.1.0
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    f4dc430 View commit details
  12. Copy the full SHA
    e718d72 View commit details
  13. Merge pull request #289 from JohannesKlauss/renovate/jest-26.x

    Update dependency @types/jest to v26.0.3
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    1826f71 View commit details
  14. Merge pull request #281 from louisrli/patch-1

    Update README to reflect lack of filter scoping
    JohannesKlauss authored Jun 24, 2020
    Copy the full SHA
    8b03949 View commit details
  15. Added yarn 2

    JohannesKlauss committed Jun 24, 2020
    Copy the full SHA
    eae4bc7 View commit details

Commits on Jun 30, 2020

  1. Copy the full SHA
    d86a4dc View commit details
  2. Copy the full SHA
    5f6b6e2 View commit details
  3. v2.1.4

    JohannesKlauss committed Jun 30, 2020
    Copy the full SHA
    22f7e2a View commit details
Showing with 4,662 additions and 6,420 deletions.
  1. +2 −2 README.md
  2. +5 −2 docs/useHotkeys.mdx
  3. +15 −15 package.json
  4. +4,640 −6,401 yarn.lock
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -55,8 +55,8 @@ section on the hotkeys documentation for more info.
gets hit by the user. **Important:** Since version 1.5.0 this callback gets memoised inside the hook. So you don't have
to do this anymore by yourself.
- `options: Options = {}`
- `filter: (event: KeyboardEvent): boolean` is used to enable hotkeys inside input elements. Check out [hotkeys docs](https://github.com/jaywcjlove/hotkeys/#filter) for usage
- * `enableOnTags: string[]` is used to enable listening to hotkeys in form fields. Available values are `INPUT`, `TEXTAREA` and `SELECT`. **IMPORTANT!** When you provide a custom `filter` implementation function this parameter will be ignored.
- `filter: (event: KeyboardEvent): boolean` is used to enable hotkeys inside input elements. Check out [hotkeys docs](https://github.com/jaywcjlove/hotkeys/#filter) for usage. Due to constraints with the base library, `filter` is a global setting. As a result, it is currently not possible to have different filters for separate calls of `useHotkey`.
- * `enableOnTags: string[]` is used to enable listening to hotkeys in form fields. Available values are `INPUT`, `TEXTAREA` and `SELECT`. **IMPORTANT!** When you provide a custom `filter` implementation function this parameter will be ignored. Similar to `filter`, setting this option will enable it globally.
- `splitKey: string` is used to change the splitting character inside the keys argument. Default is `+`, but if you want
to listen to the `+` character, you can set `splitKey` to i.e. `-` and listen for `ctrl-+`
- `keyup: boolean` Determine if you want to listen on the keyup event
7 changes: 5 additions & 2 deletions docs/useHotkeys.mdx
Original file line number Diff line number Diff line change
@@ -68,8 +68,11 @@ The options parameter is used to pass options directly to the hotkeys package. C
for an overview.

### Parameters
* `filter: (event: KeyboardEvent): boolean` is used to enable hotkeys inside input elements. Check out [hotkeys docs](https://github.com/jaywcjlove/hotkeys/#filter) for usage
* `enableOnTags: string[]` is used to enable listening to hotkeys in form fields. Available values are `INPUT`, `TEXTAREA` and `SELECT`.
* `filter: (event: KeyboardEvent): boolean` is used to enable hotkeys inside input elements. Check out
[hotkeys docs](https://github.com/jaywcjlove/hotkeys/#filter) for usage. Due to constraints with the base library,
`filter` is a global setting. As a result, it is currently not possible to have different filters for separate calls of `useHotkey`.
* `enableOnTags: string[]` is used to enable listening to hotkeys in form fields. Available values are `INPUT`, `TEXTAREA`
and `SELECT`. Similar to `filter`, setting this option will enable it globally.
**IMPORTANT!** When you provide a custom `filter` implementation function this parameter will be ignored.
* `splitKey: string` is used to change the splitting character inside the keys argument. Default is `+`, but if you want
to listen to the `+` character, you can set `splitKey` to i.e. `-` and listen for `ctrl-+`
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-hotkeys-hook",
"version": "2.1.3",
"version": "2.1.4",
"repository": "https://JohannesKlauss@github.com/JohannesKlauss/react-keymap-hook.git",
"author": "Johannes Klauss",
"keywords": [
@@ -55,39 +55,39 @@
]
},
"dependencies": {
"hotkeys-js": "3.7.6"
"hotkeys-js": "3.8.1"
},
"devDependencies": {
"@babel/core": "7.9.0",
"@babel/preset-env": "7.9.5",
"@babel/preset-react": "7.9.4",
"@babel/preset-typescript": "7.9.0",
"@babel/core": "7.10.3",
"@babel/preset-env": "7.10.3",
"@babel/preset-react": "7.10.1",
"@babel/preset-typescript": "7.10.1",
"@emotion/core": "10.0.28",
"@pika/pack": "0.5.0",
"@pika/plugin-build-node": "0.9.2",
"@pika/plugin-build-types": "0.9.2",
"@pika/plugin-build-web": "0.9.2",
"@pika/plugin-ts-standard-pkg": "0.9.2",
"@testing-library/react": "10.0.2",
"@testing-library/react-hooks": "3.2.1",
"@types/jest": "25.2.1",
"@types/react": "16.9.34",
"@types/react-dom": "16.9.6",
"@testing-library/react": "10.4.1",
"@testing-library/react-hooks": "3.3.0",
"@types/jest": "26.0.3",
"@types/react": "16.9.41",
"@types/react-dom": "16.9.8",
"@types/testing-library__react": "10.0.1",
"@types/testing-library__react-hooks": "3.2.0",
"docz": "2.3.1",
"emotion-theming": "10.0.27",
"gatsby-plugin-emotion": "4.2.1",
"jest": "25.3.0",
"gatsby-plugin-emotion": "4.3.6",
"jest": "26.1.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-test-renderer": "16.13.1",
"typescript": "3.8.3"
"typescript": "3.9.5"
},
"peerDependencies": {
"react": ">=16.8.1"
},
"resolutions": {
"@types/react": "16.9.34"
"@types/react": "16.9.41"
}
}
Loading