Skip to content

Commit 4f8422d

Browse files
committed
released v4.0.0-beta.5 (#519)
1 parent e80eaf6 commit 4f8422d

5 files changed

Lines changed: 13 additions & 4 deletions

File tree

dist/hotkeys-js.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hotkeys-js.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hotkeys-js.umd.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function(O,E){typeof exports=="object"&&typeof module!="undefined"?module.exports=E():typeof define=="function"&&define.amd?define(E):(O=typeof globalThis!="undefined"?globalThis:O||self,O.hotkeys=E())})(this,function(){"use strict";/*!
2-
* hotkeys-js v4.0.0-beta.4
2+
* hotkeys-js v4.0.0-beta.5
33
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
44
*
55
* @author kenny wong <wowohoo@qq.com>

dist/index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,18 @@ declare type Trigger = (shortcut: string, scope?: string) => void;
217217

218218
declare interface Unbind {
219219
(key?: string): void;
220+
(keysInfo: UnbindInfo): void;
221+
(keysInfo: UnbindInfo[]): void;
220222
(key: string, scopeName: string): void;
221223
(key: string, scopeName: string, method: KeyHandler): void;
222224
(key: string, method: KeyHandler): void;
223225
}
224226

227+
declare interface UnbindInfo {
228+
key: string;
229+
scope?: string;
230+
method?: KeyHandler;
231+
splitKey?: string;
232+
}
233+
225234
export { }

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hotkeys-js",
33
"description": "A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.",
4-
"version": "4.0.0-beta.4",
4+
"version": "4.0.0-beta.5",
55
"type": "module",
66
"main": "dist/hotkeys-js.umd.cjs",
77
"module": "dist/hotkeys-js.js",

0 commit comments

Comments
 (0)