Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-localshortcut

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-localshortcut - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

.travis.yml

29

package.json
{
"name": "electron-localshortcut",
"version": "0.5.0",
"description": "register/unregister a keyboard shortcut locally to a BrowserWindow instance, without using a Menu",
"repository": "https://github.com/parro-it/electron-localshortcut.git",
"bugs": {
"url": "https://github.com/parro-it/electron-localshortcut/issues"
"repository": "parro-it/electron-localshortcut",
"license": "MIT",
"main": "src/index.js",
"author": "andrea@parro.it",
"scripts": {
"test": "eslint ."
},
"eslintConfig": {
"extends": "eslint-config-devenv"
},
"keywords": [

@@ -13,19 +20,5 @@ "electron",

],
"version": "0.4.0",
"main": "src/index.js",
"author": "andrea@parro.it",
"scripts": {
"test": "electron test",
"release-minor": "release-minor",
"release-patch": "release-patch",
"lint": "lint",
"prepublish": "lint"
},
"eslintConfig": {
"extends": "devenv"
},
"license": "MIT",
"devDependencies": {
"electron-debug": "^0.3.0"
"electron-debug": "^0.5.0"
}
}

@@ -10,2 +10,3 @@ # electron-localshortcut

[![Travis Build Status](https://img.shields.io/travis/parro-it/electron-localshortcut.svg)](http://travis-ci.org/parro-it/electron-localshortcut)
[![NPM module](https://img.shields.io/npm/v/electron-localshortcut.svg)](https://npmjs.org/package/electron-localshortcut)

@@ -25,3 +26,3 @@ [![NPM downloads](https://img.shields.io/npm/dt/electron-localshortcut.svg)](https://npmjs.org/package/electron-localshortcut)

const electronLocalshortcut = require('electron-localshortcut');
const BrowserWindow = require('browser-window');
const BrowserWindow = require('electron').BrowserWindow;

@@ -28,0 +29,0 @@ const win = new BrowserWindow();

'use strict';
const globalShortcut = require('global-shortcut');
const BrowserWindow = require('browser-window');
const app = require('app');
const electron = require('electron');
const globalShortcut = electron.globalShortcut;
const BrowserWindow = electron.BrowserWindow;
const app = electron.app;
const windowsWithShortcuts = new WeakMap();

@@ -7,0 +8,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc