Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 911 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 911 Bytes

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