mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-16 12:50:42 +08:00
hotkeys interface supports both string and string[] for combos
This commit is contained in:
1 parent
bb465f2cc7
commit
c0c420cd6c
2 files changed
+6
-1
No files matched your search
@@ -22,4 +22,9 @@ hotkeyProvider.bindTo(scope)
|
||||
description: 'blah blah',
|
||||
callback: function() {}
|
||||
});
|
||||
.add({
|
||||
combo: ['w', 'mod+w'],
|
||||
description: 'blah blah',
|
||||
callback: function() {}
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -40,7 +40,7 @@ declare module ng.hotkeys {
|
||||
}
|
||||
|
||||
interface Hotkey {
|
||||
combo: string;
|
||||
combo: string | string[];
|
||||
description?: string;
|
||||
callback: (event: Event, hotkey: ng.hotkeys.Hotkey) => void;
|
||||
action?: string;
|
||||
|
||||
Reference in new issue
Block a user