hotkeys interface supports both string and string[] for combos

This commit is contained in:
Jonathan Park
2015-03-03 11:15:49 -08:00
parent bb465f2cc7
commit c0c420cd6c
2 changed files with 6 additions and 1 deletions

View File

@@ -22,4 +22,9 @@ hotkeyProvider.bindTo(scope)
description: 'blah blah',
callback: function() {}
});
.add({
combo: ['w', 'mod+w'],
description: 'blah blah',
callback: function() {}
});

View File

@@ -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;