{"id":16385050,"url":"https://github.com/jostrander/mouse-forward-back","last_synced_at":"2025-07-05T01:06:31.286Z","repository":{"id":57303213,"uuid":"55266336","full_name":"jostrander/mouse-forward-back","owner":"jostrander","description":"A module used to listen for buttons 8/9 for a window in Electron.","archived":false,"fork":false,"pushed_at":"2019-12-08T16:16:07.000Z","size":10,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-25T17:16:33.036Z","etag":null,"topics":["electron","listen","mouse"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/jostrander.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":"2016-04-01T22:36:56.000Z","updated_at":"2025-02-27T07:38:23.000Z","dependencies_parsed_at":"2022-08-29T07:12:36.657Z","dependency_job_id":null,"html_url":"https://github.com/jostrander/mouse-forward-back","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jostrander/mouse-forward-back","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jostrander%2Fmouse-forward-back","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jostrander%2Fmouse-forward-back/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jostrander%2Fmouse-forward-back/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jostrander%2Fmouse-forward-back/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jostrander","download_url":"https://codeload.github.com/jostrander/mouse-forward-back/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jostrander%2Fmouse-forward-back/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261952700,"owners_count":23235427,"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":["electron","listen","mouse"],"created_at":"2024-10-11T04:13:26.122Z","updated_at":"2025-07-05T01:06:31.225Z","avatar_url":"https://github.com/jostrander.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mouse Back / Forward for Electron Linux\n======================================================\n\nA module used to listen for buttons 8/9 for a window in Electron.\n\n## Installation\nIf during `npm install` you get issues about a missing library it's likely that you are missing `X11/Xlib`.\nRun the following command and try installing again:\n\n```bash\nsudo apt install libx11-dev\n```\n\nIf your Electron Chrome version diverges from your locally installed, which is pretty likely the case, do the following after installing the package to rebuild it using electrons chrome version:\n\n```bash\nnpm install --save-dev electron-rebuild\nnpx electron-rebuild\n```\n\n## Usage\n\nRequiring the module returns an object with one method:\n\n### register(fn, windowHandle)\nThis will bind the callback `fn` to any mouse forward/back events for `windowHandle`. `fn` takes one parameter, and will return either `back` or `forward`.\n\nIn electron you need to pass in `yourWindow.getNativeWindowHandle()` as the second parameter.\n\nIf you are not using Electron, `windowHandle` is expecting a `node::Buffer` of a `Window` for X11.\n\n#### License\n\nThe MIT License (MIT)\nCopyright (c) 2016 Jesse Ostrander\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjostrander%2Fmouse-forward-back","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjostrander%2Fmouse-forward-back","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjostrander%2Fmouse-forward-back/lists"}