Hi. I use hotkey on all my websites, and I always define the same hotkeys. I'm tired of adding them to the database by hand each time, so I created some hooks for modules to define hotkeys for form items and for links.

hook_hotkey_form
hook_hotkey_links

I added text to the README file explaining the use of these hooks and providing examples. It should be very easy to migrate hotkey configurations now.

CommentFileSizeAuthor
hotkey_api.diff4.17 KBgalaxor

Comments

galaxor’s picture

btw, I'm at Drupalcon, are you?

smokris’s picture

Version: 6.x-2.2 » 6.x-2.3

Cool, thanks. I've applied your patch regarding hook_hotkey_links, but the diff you attached doesn't seem to implement hook_hotkey_form.

smokris’s picture

Version: 6.x-2.3 » 6.x-2.4
Status: Needs review » Needs work

(clarify status)