{"id":18761472,"url":"https://github.com/ichord/simple-hotkeys","last_synced_at":"2025-04-13T03:31:29.731Z","repository":{"id":24133532,"uuid":"27522544","full_name":"ichord/simple-hotkeys","owner":"ichord","description":"simple hotkeys.","archived":false,"fork":false,"pushed_at":"2019-04-17T09:09:49.000Z","size":26,"stargazers_count":3,"open_issues_count":0,"forks_count":26,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T03:05:23.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ichord.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-12-04T04:13:35.000Z","updated_at":"2019-10-14T18:03:51.000Z","dependencies_parsed_at":"2022-08-22T11:41:07.176Z","dependency_job_id":null,"html_url":"https://github.com/ichord/simple-hotkeys","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichord%2Fsimple-hotkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichord%2Fsimple-hotkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichord%2Fsimple-hotkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ichord%2Fsimple-hotkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ichord","download_url":"https://codeload.github.com/ichord/simple-hotkeys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248659645,"owners_count":21141152,"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":[],"created_at":"2024-11-07T18:16:15.889Z","updated_at":"2025-04-13T03:31:29.499Z","avatar_url":"https://github.com/ichord.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"simple-hotkeys\n=============\n\n### Options\n\n* el - jQuery selector / jQuery Object / Node;\n\nIf you want to bind hotkeys to dynamic adding element, please pass a selector as `el`.  \nIf the `el` is null or doesn't exist, `document` element would be used by default.\n\n### Api\n\n* add(shortcut, callback(e)) - add a hotkey.\n* remove(shortcut) - remove a hotkey\n* destroy() - off events and clean up.\n\n### Usage\n\n```javascript\nhotkeys = simple.hotkeys();\nhotkeys.add(\"ctrl + b\", function(e){\n    console.log(\"ctrl + b pressed\");\n}).add(\"ctrl + h\"], function(e){\n    console.log(\"Help\");\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichord%2Fsimple-hotkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fichord%2Fsimple-hotkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fichord%2Fsimple-hotkeys/lists"}