diff --git a/README.md b/README.md index 553a3779..c64b86bc 100644 --- a/README.md +++ b/README.md @@ -262,6 +262,11 @@ Use the `hotkeys.deleteScope` method to delete a scope. This will also remove al ```js hotkeys.deleteScope('issues'); ``` +You can use second argument, if need set new scope after deleting. + +```js +hotkeys.deleteScope('issues', 'newScopeName'); +``` ### unbind diff --git a/index.d.ts b/index.d.ts index e707f924..61e4c84f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -37,7 +37,7 @@ interface Hotkeys { setScope(scopeName: string): void; getScope(): string; - deleteScope(scopeName: string): void; + deleteScope(scopeName: string, newScopeName?: string): void; noConflict(): Hotkeys;