{"id":17929769,"url":"https://github.com/samypesse/react-combo-keys","last_synced_at":"2025-07-06T03:07:11.950Z","repository":{"id":48016807,"uuid":"85698925","full_name":"SamyPesse/react-combo-keys","owner":"SamyPesse","description":"React declarative API to bind keyboard shortcuts","archived":false,"fork":false,"pushed_at":"2023-01-03T21:42:57.000Z","size":141,"stargazers_count":25,"open_issues_count":6,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T04:08:29.817Z","etag":null,"topics":["javascript","keyboard-shortcuts","react"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SamyPesse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-21T12:25:48.000Z","updated_at":"2023-09-08T17:22:33.000Z","dependencies_parsed_at":"2023-02-01T10:31:40.853Z","dependency_job_id":null,"html_url":"https://github.com/SamyPesse/react-combo-keys","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyPesse%2Freact-combo-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyPesse%2Freact-combo-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyPesse%2Freact-combo-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamyPesse%2Freact-combo-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamyPesse","download_url":"https://codeload.github.com/SamyPesse/react-combo-keys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245210971,"owners_count":20578323,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","keyboard-shortcuts","react"],"created_at":"2024-10-28T21:10:28.347Z","updated_at":"2025-03-24T04:31:06.950Z","avatar_url":"https://github.com/SamyPesse.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `react-combo-keys`\n\n[![Build Status](https://travis-ci.org/SamyPesse/react-combo-keys.svg?branch=master)](https://travis-ci.org/SamyPesse/react-combo-keys)\n[![NPM version](https://badge.fury.io/js/react-combo-keys.svg)](http://badge.fury.io/js/react-combo-keys)\n\n\nDeclarative API with React to bind keyboard shortcuts using Mousetrap.\n\n### Installation\n\n```\n$ yarn add react-combo-keys\n```\n\n### Usage\n\n```ts\nimport * as React from 'react';\nimport { useComboKeys } from 'react-combo-keys';\n\nfunction SearchBar(props: {}) {\n    const input = Rwact.useRef();\n\n    useComboKeys({\n        'Mod+F': () =\u003e {\n            input.current.focus();\n        },\n        'Mod+': () =\u003e {\n            alert('Settings !')\n        }\n    }, {}, []);\n\n    return \u003cinput type=\"text\" ref={input} /\u003e;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamypesse%2Freact-combo-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamypesse%2Freact-combo-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamypesse%2Freact-combo-keys/lists"}