MrHieu Posted August 25, 2010 Share Posted August 25, 2010 Hi everyone,I have a question about navigation keys in Thickbox. Can I use arrow keys (navigation keys) on the keyboard to see the next and previous images on the Thickbox window ? Is it possible ? I think it's more useful for users than "click" to the "next" and "previous" link. I saw that thing on many other websites and I wonder If prestashop could do ? Link to comment Share on other sites More sharing options...
MrHieu Posted August 26, 2010 Author Share Posted August 26, 2010 thanks mod for moving my thread still need help Link to comment Share on other sites More sharing options...
rocky Posted August 27, 2010 Share Posted August 27, 2010 Thickbox already lets you navigation using the keyboard, but it uses the < and > keys, not the left and right arrow keys. To change it to the left and right arrow keys instead, change line 27 of js/jquery/thickbox-modified.js (in PrestaShop v1.3.1) from: if(keycode==27){tb_remove();}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();[spam-filter]else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();[spam-filter]}; to: if(keycode==27){tb_remove();}else if(keycode==39){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();[spam-filter]else if(keycode==37){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();[spam-filter]}; Link to comment Share on other sites More sharing options...
MrHieu Posted August 28, 2010 Author Share Posted August 28, 2010 Thank you so much. It works. Link to comment Share on other sites More sharing options...
Benj56 Posted December 9, 2010 Share Posted December 9, 2010 Cheers Rocky Link to comment Share on other sites More sharing options...
framarfre Posted July 30, 2014 Share Posted July 30, 2014 Excuse me, anybody can help me? Why on my PrestaShop 1.6.0.8 the arrows don't work from smarphone but only from computer? Please help me to solve this problem that make me crazy I use the default theme, with small aesthetic customizations made by me. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now