electron-localshortcut | Add keyboard shortcuts locally to a BrowserWindow instance | Menu library

 by   parro-it JavaScript Version: 3.2.1 License: MIT

kandi X-RAY | electron-localshortcut Summary

kandi X-RAY | electron-localshortcut Summary

electron-localshortcut is a JavaScript library typically used in User Interface, Menu, Electron applications. electron-localshortcut has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i electron-localshortcut' or download it from GitHub, npm.

Add keyboard shortcuts locally to a BrowserWindow instance, without using a Menu
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              electron-localshortcut has a low active ecosystem.
              It has 398 star(s) with 41 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 7 open issues and 36 have been closed. On average issues are closed in 137 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of electron-localshortcut is 3.2.1

            kandi-Quality Quality

              electron-localshortcut has 0 bugs and 0 code smells.

            kandi-Security Security

              electron-localshortcut has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              electron-localshortcut code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              electron-localshortcut is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              electron-localshortcut releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed electron-localshortcut and discovered the below as its top functions. This is intended to give you an instant insight into electron-localshortcut implemented functionality, and help decide if they suit your requirements.
            • Registers the shortcut accelerator registered on the BrowserWindow instance .
            • Unregisters the shortcut of accelerator registered on the BrowserWindow instance .
            • normalize event
            • Checks the accelerator configuration .
            • Search for the shortcut of a shortcut
            • Unregisters all shortcuts registered on any BrowserWindow instance .
            • Disable all shortcuts registered on the specified window object .
            • Enable all shortcuts registered on the BrowserWindow instance .
            • Check if a shortcut is registered on the BrowserWindow instance .
            Get all kandi verified functions for this library.

            electron-localshortcut Key Features

            No Key Features are available at this moment for electron-localshortcut.

            electron-localshortcut Examples and Code Snippets

            No Code Snippets are available at this moment for electron-localshortcut.

            Community Discussions

            QUESTION

            how to do 'cut' with electron-localshortcut
            Asked 2019-Aug-13 at 10:16

            I want to use keyboard shortcuts in mac without using menu.

            I read this.

            Can I make non global accelerators without putting things in a menu?

            And now I know that I can use this module.

            electron-localshortcut

            But how can I use copy, cut, and paste?

            ...

            ANSWER

            Answered 2019-Aug-13 at 10:16
            1. One best way is using keydown and keyup events or you can just use electron web-contents before-input-event event which is emitted before dispatching keydown and keyup events in the page. It can be used to catch and handle custom shortcuts that are not visible in the menu. you can check the combination of key you want to add shortcut and then add a callback.
            2. If you don't want to do manual shortcut parsing there are libraries that do advanced key detection such as mousetrap.

            Source https://stackoverflow.com/questions/57474136

            QUESTION

            Shortcuts in Electron on Mac
            Asked 2017-Jun-28 at 11:10

            Well, I have quite a simple task, which can't be really hard. I have an app, which uses the electron framework to use the application on Windows and Mac machines. I notices that I am able to use Ctrl+c/Ctrl+v on Windows without any problems, but I am not able to use Cmd+c/Cmd+v on Mac after I used the electron-packager.

            I found solutions like this (CMD + C / CMD + V not working), but I have a custom menue and I don't want to define and use the one in electron itself. So I found this (global accelerators without menue, but the issue is still open and there seems to be no solution. Solutions like this (Local-Shortcut) are also not usable, as they don't get the selected text (e.g. from a textbox) as a parameter.

            I think using Cmd+c / Cmd+v shouldn't be a real issue, since it is a common action in every application, but I don't see a usable solution at the moment. This also effects all other shortcuts like Cmd+a to select everything.

            ...

            ANSWER

            Answered 2017-Jun-28 at 11:10

            There seems to be no way of doing it if you really want to hide these shortcuts from the menu.

            At the moment, the best workaround is to display the shortcuts menu on MacOS only:

            Source https://stackoverflow.com/questions/44797324

            QUESTION

            electron-localshortcut not working without providing Browser Window
            Asked 2017-May-27 at 17:32

            electon-localshortcut giving error when I am trying to assign shortcut without specifying any browser window as given in https://www.npmjs.com/package/electron-localshortcut

            ...

            ANSWER

            Answered 2017-May-27 at 17:32
            Option 1

            Register electron-localshortcut on all the windows then when it get's pressed then run a function that checks for the focused window like this:

            Source https://stackoverflow.com/questions/44217883

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install electron-localshortcut

            You can install using 'npm i electron-localshortcut' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i electron-localshortcut

          • CLONE
          • HTTPS

            https://github.com/parro-it/electron-localshortcut.git

          • CLI

            gh repo clone parro-it/electron-localshortcut

          • sshUrl

            git@github.com:parro-it/electron-localshortcut.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Menu Libraries

            xbar

            by matryer

            stats

            by exelban

            tippyjs

            by atomiks

            XPopup

            by li-xiaojun

            BoomMenu

            by Nightonke

            Try Top Libraries by parro-it

            libui-node

            by parro-itC++

            canibekikked

            by parro-itJavaScript

            debug-menu

            by parro-itJavaScript

            electron-input-menu

            by parro-itJavaScript

            electron-detach

            by parro-itJavaScript