Keyboard Shortcuts with x_treme theme
dspguy1
Joined: 2003-01-14
Posts: 45 |
Posted: Sat, 2010-01-09 22:42 |
This took me a good hour to research. I could not find a post related to this. If you want to add keyboard shorcuts such as left and right arrow keys to go to previous and next images here are the steps for the x_treme theme: 1. Download shortcut.js and put it in the root of your gallery folder: Quote:
{assign var="nextImage" value=$theme.navigator.next} 5. Add the following block of code after that (make sure you change 'gallery' to the root of your gallery): Quote:
<script type="text/javascript" src="/gallery/shortcut.js"></script> 6. Delete your template cache in the maintenance admin section. This will work for other themes too, you just have to find the correct template and put the code there. Hope this helps. Please post if you think anything is wrong with these instructions. |
|