1.0.3 • Published 5 years ago

electron-window-shortcut v1.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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);