{"id":27601264,"url":"https://github.com/ryuslash/jskeys","last_synced_at":"2025-08-17T14:38:09.053Z","repository":{"id":3697922,"uuid":"4768791","full_name":"ryuslash/jskeys","owner":"ryuslash","description":"A simple (I hope) javascript key-binding library.","archived":false,"fork":false,"pushed_at":"2012-06-24T09:20:19.000Z","size":96,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T17:17:01.973Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryuslash.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-24T00:33:26.000Z","updated_at":"2013-11-27T10:34:05.000Z","dependencies_parsed_at":"2022-08-29T12:32:25.486Z","dependency_job_id":null,"html_url":"https://github.com/ryuslash/jskeys","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryuslash/jskeys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuslash%2Fjskeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuslash%2Fjskeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuslash%2Fjskeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuslash%2Fjskeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryuslash","download_url":"https://codeload.github.com/ryuslash/jskeys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuslash%2Fjskeys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270860953,"owners_count":24658482,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-04-22T17:17:01.143Z","updated_at":"2025-08-17T14:38:08.942Z","avatar_url":"https://github.com/ryuslash.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Jskeys\n\n  A simple (I hope?) key-binding library in JavaScript. Currently only\n  an *Experiment*, don't expect miracles.\n\n  It has only been tested a little and only on firefox 13 and chromium\n  19, both on GNU/Linux.\n\n** Usage\n\n   To use, just include it and call =jskeys_initialize=. Like so:\n\n   #+begin_src html\n     \u003cscript src=\"/jskeys.js\" language=\"javascript\"\u003e\u003c/script\u003e\n     \u003cscript language=\"javascript\"\u003e\n       jskeys_initialize({ \"u\": [ \"jskeys_goto\", \"../\" ],\n                           \"h\": [ \"jskeys_goto\", \"http://www.example.com\" ] });\n     \u003c/script\u003e\n   #+end_src\n\n   The argument for =jskeys_initialize= should be an associative array\n   that looks like this:\n\n   #+begin_src javascript\n     { char: [ function, args... ],\n       ... }\n   #+end_src\n\n   Where ~CHAR~ should be a string character specification, which can\n   be:\n\n   - ~n~ :: Where ~N~ is any single character, for just a pressed character.\n   - ~C-n~ :: Where ~N~ is any single character, for ~\u003ccontrol\u003e~ + ~N~.\n   - ~M-n~ :: Where ~N~ is any single character, for ~\u003calt\u003e~ + ~N~, or\n            ~\u003cmeta\u003e~ + ~N~.\n   - ~S-n~ :: Where ~N~ is any single character, for ~\u003cshift\u003e~ + ~N~.\n\n   Where ~FUNCTION~ is a string containing the name of the function to\n   call and where ~ARGS~ is any number of arguments in any form that you\n   want to pass along to ~FUNCTION~. It is your own responsibility to\n   make sure that ~FUNCTION~ can handle what you put in ~ARGS~.\n\n** Caveats\n\n   Right now it is in a very early stage of development, so it /may/ get\n   fixed later on, but for now, at least in chromium, not all\n   key-bindings can work. Browser keyboard shortcuts can not (yet) be\n   overridden. This does seem to work in firefox.\n\n   When using a browser plugin like pentadactyl, you should first make\n   sure that the keys can get through to the web page.\n\n** Example\n\n   My own [[http://org.ryuslash.org][~org-mode~-powered website]] uses this in some places. The\n   front page and the project pages use it currently, press ~u~ or ~h~\n   there to go \"UP\" or \"HOME\".\n\n   There is also the ~test.html~, where ~u~ goes to ~#up~, ~h~ goes to ~#home~,\n   ~C-c~ (that is, ~\u003ccontrol\u003e+c~) alerts the message \"works!\" and ~C-i~\n   (that is, ~\u003ccontrol\u003e+i~) alerts the message \"doesn't!\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryuslash%2Fjskeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryuslash%2Fjskeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryuslash%2Fjskeys/lists"}