diff --git a/angular-hotkeys/angular-hotkeys.d.ts b/angular-hotkeys/angular-hotkeys.d.ts index f209fbe08..63085fc03 100644 --- a/angular-hotkeys/angular-hotkeys.d.ts +++ b/angular-hotkeys/angular-hotkeys.d.ts @@ -9,13 +9,16 @@ declare module ng.hotkeys { interface HotkeysProvider { template: string; + templateTitle:string; includeCheatSheet: boolean; cheatSheetHotkey: string; cheatSheetDescription: string; - add(combo: string, description: string, callback: (event: Event, hotkeys: ng.hotkeys.Hotkey) => void): void; + add(combo: string, callback: (event: Event, hotkey?: Hotkey) => void, action?: string, allowIn?: Array, persistent?: boolean): ng.hotkeys.Hotkey; - add(hotkeyObj: ng.hotkeys.Hotkey): void; + add(combo: string, description: string, callback: (event: Event, hotkey?: Hotkey) => void, action?: string, allowIn?: Array, persistent?: boolean): ng.hotkeys.Hotkey; + + add(hotkeyObj: ng.hotkeys.Hotkey): ng.hotkeys.Hotkey; bindTo(scope : ng.IScope): ng.hotkeys.HotkeysProviderChained; @@ -24,6 +27,8 @@ declare module ng.hotkeys { get(combo: string): ng.hotkeys.Hotkey; toggleCheatSheet(): void; + + purgeHotkeys(): void; } interface HotkeysProviderChained { @@ -36,5 +41,8 @@ declare module ng.hotkeys { combo: string; description?: string; callback: (event: Event, hotkey: ng.hotkeys.Hotkey) => void; + action?: string; + allowIn?: Array; + persistent?: boolean; } }