{"id":38048627,"url":"https://github.com/dyorgio/jinputhook","last_synced_at":"2026-01-16T20:01:53.846Z","repository":{"id":43270855,"uuid":"198838269","full_name":"dyorgio/jinputhook","owner":"dyorgio","description":"Global Key and Shortcuts listeners for Java","archived":false,"fork":false,"pushed_at":"2024-04-26T02:49:34.000Z","size":39,"stargazers_count":8,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-21T01:28:23.102Z","etag":null,"topics":["hook","java","keylistener","keystroke","shortcuts"],"latest_commit_sha":null,"homepage":"https://dyorgio.github.io/jinputhook/","language":"Java","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/dyorgio.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,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null}},"created_at":"2019-07-25T13:37:18.000Z","updated_at":"2025-02-15T02:24:06.000Z","dependencies_parsed_at":"2024-04-26T03:46:12.581Z","dependency_job_id":null,"html_url":"https://github.com/dyorgio/jinputhook","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dyorgio/jinputhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fjinputhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fjinputhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fjinputhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fjinputhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyorgio","download_url":"https://codeload.github.com/dyorgio/jinputhook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fjinputhook/sbom","scorecard":{"id":362477,"data":{"date":"2025-08-11","repo":{"name":"github.com/dyorgio/jinputhook","commit":"a58366fb95ab355273e22dde8b01897ebe502338"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact jinputhook-1.0.2 not signed: https://api.github.com/repos/dyorgio/jinputhook/releases/32997679","Warn: release artifact jinputhook-1.0.2 does not have provenance: https://api.github.com/repos/dyorgio/jinputhook/releases/32997679"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T11:08:50.796Z","repository_id":43270855,"created_at":"2025-08-18T11:08:50.796Z","updated_at":"2025-08-18T11:08:50.796Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["hook","java","keylistener","keystroke","shortcuts"],"created_at":"2026-01-16T20:01:50.281Z","updated_at":"2026-01-16T20:01:53.831Z","avatar_url":"https://github.com/dyorgio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"JInputHook\n===============\n[![Build Status](https://travis-ci.org/dyorgio/jinputhook.svg?branch=master)](https://travis-ci.org/dyorgio/jinputhook) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.dyorgio.runtime/jinputhook/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.dyorgio.runtime/jinputhook)\n\nGlobal Key and Shortcuts listeners for Java.\n\nWhy use it?\n-----\n* Create global keyboard/shortcut listeners.\n* As an alternative to excelent lib [JNativeHook](https://github.com/kwhat/jnativehook).\n\nUsage\n-----\nFor shortcut listener:\n\n```java\n// Initialize\nJInputHook.initialize();\n// Register shortcut listener\nShortcut shortcut = Shortcut.fromKeys(Key.LCONTROL, Key.LSHIFT, Key.D);\nJInputHook.addShortcutListener(shortcut,\n    new ShortcutListener() {\n        @Override\n        public void shortcutTriggered(Shortcut shortcut) {\n            System.out.println(\"shortcutTriggered(\" + shortcut + \").\");\n        }\n    }\n);\n```\n\nFor keyboard listener:\n\n```java\n// Initialize\nJInputHook.initialize();\n// Register global keyboard listener\nJInputHook.addListener(new GlobalKeyListener() {\n    @Override\n    public void keyPressed(Key key) {\n        System.out.println(\".keyPressed(\" + key + \").\");\n    }\n\n    @Override\n    public void keyReleased(Key key) {\n        System.out.println(\".keyReleased(\" + key + \").\");\n    }\n});\n```\n\nMaven\n-----\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.dyorgio.runtime\u003c/groupId\u003e\n    \u003cartifactId\u003ejinputhook\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.2\u003c/version\u003e\n    \u003c!-- Optional classifier by OS, don't use classifier to support ALL --\u003e\n    \u003c!--\u003cclassifier\u003emac-universal\u003c/classifier\u003e--\u003e\n    \u003c!--\u003cclassifier\u003elinux-universal\u003c/classifier\u003e--\u003e\n    \u003c!--\u003cclassifier\u003ewin-universal\u003c/classifier\u003e--\u003e\n\u003c/dependency\u003e\n```\n\nWindows\n-----\nOn Windows, include JNA as dependency.\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.java.dev.jna\u003c/groupId\u003e\n    \u003cartifactId\u003ejna-platform\u003c/artifactId\u003e\n    \u003cversion\u003e${your.jna.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nLinux\n-----\nOn Linux you need to adjust permissions of /dev/input/event* to can read:\n```bash\nsudo chmod o+r /dev/input/event*\n```\n\nOr, according with distro, create a new dev rule file on /etc/udev/rules.d/YOUR-FILE-NAME.rules:\n```txt\nSUBSYSTEM==\"input\", KERNEL==\"event*\", MODE=\"644\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyorgio%2Fjinputhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyorgio%2Fjinputhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyorgio%2Fjinputhook/lists"}