electron-window-shortcut

1.0.3 • Public • Published

GitHub license Twitter

electron-window-shortcut

A Node.js Module for electron apps to bring back the browser window based shortcuts in electron engine >= 3.0.0

Install Module

    npm install electron-window-shortcut

Usage

const {
    register,
    unregister,
    attachToWebContent 
= require('electron-window-shortcut');
 
register('Command+G', (event)=>{
    event.preventDefault();
    console.log('Command+G pressed..');
});
 
unregister('Command+G');
 
attachToWebContent(webContent);

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i electron-window-shortcut

    Weekly Downloads

    10

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    5.23 kB

    Total Files

    4

    Last publish

    Collaborators

    • syed_umair