bhuga/jquery_hotkeys
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
// $Id$ jquery_hotkeys supports generic JavaScript actions in response to hotkey presses via the jQuery hotkeys module, available from: http://code.google.com/p/js-hotkeys/ After enabling the correct permissions, you'll be able to add generic hotkeys. You'll need some familiarity with JavaScript to make use of them. A few examples: Submit content with control-c Hotkey: ctrl-c JavaScript: $('#node-form').submit() Pages: node/* Focus on the title of a post with % Hotkey: % JavaScript: $('#edit-title').focus() Pages: node/* Please be aware that you can possibly open your site to security problems with poorly considered JavaScript. TROUBLESHOOTING Q: I can't type anything on a page with a hotkey enabled! What's going on? A: Your system was unable to load the jQuery hotkeys library. jQuery hotkeys re-defines some key-capture functions, and binding commands without it there will break things rather handily. Check that you installed the library correctly, and that it has a correct symlink. Be sure to clear your cache at admin/settings/performance after repairing the problem. CREDITS Significant portions of the admin interface here were adapted from the css injector module, available at drupal.org/project/css_injector.