electron-localshortcut
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"main": "src/index.js", | ||
@@ -16,0 +16,0 @@ "author": "andrea@parro.it", |
@@ -81,4 +81,16 @@ # electron-localshortcut | ||
### `disableAll(window)` | ||
* `window` BrowserWindow instance | ||
Disable all of the shortcuts registered on the BrowserWindow instance. | ||
Registered shortcuts no more works on the `window` instance, but the module keep a reference on them. You can reactivate them later by calling `enableAll` method on the same window instance. | ||
### `enableAll(window)` | ||
* `window` BrowserWindow instance | ||
Enable all of the shortcuts registered on the BrowserWindow instance that you had previously disabled calling `disableAll` method. | ||
## Global shortcuts | ||
@@ -85,0 +97,0 @@ |
@@ -145,3 +145,5 @@ 'use strict'; | ||
isRegistered: isRegistered, | ||
unregisterAll: unregisterAll | ||
unregisterAll: unregisterAll, | ||
enableAll: registerAllShortcuts, | ||
disableAll: unregisterAllShortcuts | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10148
122
134