Skip to content

Commit bf9b7f6

Browse files
committed
narrow input type...
just call it multiple times if needing to remove multiple bindings
1 parent 0bf2e03 commit bf9b7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common-ui/src/utils/SkldrMouseTrap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class SkldrMouseTrap {
7676
* Remove specific keyboard binding(s) without affecting others
7777
* @param hotkey Single hotkey or array of hotkeys to remove
7878
*/
79-
public static removeBinding(hotkey: string | string[] | Array<string | string[]>) {
79+
public static removeBinding(hotkey: string | string[]) {
8080
const instance = SkldrMouseTrap.instance();
8181
const currentHotkeys = [...instance.hotkeys];
8282

0 commit comments

Comments
 (0)