Skip to content

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

License

Notifications You must be signed in to change notification settings

Syed-Umair/electron-window-shortcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published