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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    4
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i electron-window-shortcut

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

5.23 kB

Total Files

4

Last publish

Collaborators

  • syed_umair