chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 248 forks source link

How to open Cheat Sheet from controller #212

Open piernik opened 8 years ago

piernik commented 8 years ago

How can I open cheat sheet from controller? I've tried to trigger "?" combo with Mousetrap.trigger('?') but it's not working (some $rootScope issue)

DennisOng commented 8 years ago

hotkeys.toggleCheatSheet(); should do the job.

Way overdue, but just in case someone else stumbles accross this :)

piernik commented 8 years ago

Thanks for reply :)

sibelly commented 7 years ago

I would like to know if is possible to cancel the default behaviour of shift+? ... I would like to create my own shortcut to open the cheat sheet.