diff --git a/build/hotkeys.js b/build/hotkeys.js index 7eb55f4..ffe780a 100644 --- a/build/hotkeys.js +++ b/build/hotkeys.js @@ -325,6 +325,11 @@ } } + // Helper function to expose helpVisible for the public API + function helpVisible() { + return scope.helpVisible; + } + /** * Creates a new Hotkey and creates the Mousetrap binding * @@ -584,6 +589,7 @@ bindTo : bindTo, template : this.template, toggleCheatSheet : toggleCheatSheet, + helpVisible : helpVisible, includeCheatSheet : this.includeCheatSheet, cheatSheetHotkey : this.cheatSheetHotkey, cheatSheetDescription : this.cheatSheetDescription, diff --git a/src/hotkeys.js b/src/hotkeys.js index 5b27ec1..d0107e5 100644 --- a/src/hotkeys.js +++ b/src/hotkeys.js @@ -319,6 +319,11 @@ } } + // Helper function to expose helpVisible for the public API + function helpVisible() { + return scope.helpVisible; + } + /** * Creates a new Hotkey and creates the Mousetrap binding * @@ -578,6 +583,7 @@ bindTo : bindTo, template : this.template, toggleCheatSheet : toggleCheatSheet, + helpVisible : helpVisible, includeCheatSheet : this.includeCheatSheet, cheatSheetHotkey : this.cheatSheetHotkey, cheatSheetDescription : this.cheatSheetDescription,