WordPress.org

Ready to get started?Download WordPress

Forums

Photonic Gallery for Flickr, Picasa, SmugMug, 500px, Zenfolio and Instagram
[resolved] [Plugin: Photonic Flickr+Picasa Gallery] Thickbox - arrow keys for navigation (2 posts)

  1. johanti
    Member
    Posted 1 year ago #

    I want use arrow keys (navigation keys) on the keyboard for browsing through the gallery on the Thickbox window instead of "<" and ">" buttons.
    Which file should i edit and how?

    http://wordpress.org/extend/plugins/photonic/

  2. johanti
    Member
    Posted 1 year ago #

    ok, I resolve this problem:

    find: /wp-includes/js/thickbox/thickbox.js

    if ( e.which == 27 ){ // close
    					if ( ! jQuery(document).triggerHandler( 'wp_CloseOnEscape', [{ event: e, what: 'thickbox', cb: tb_remove }] ) )
    						tb_remove();
    
    				} else if ( e.which == 190 ){ // display previous image 190(<)
    					if(!(TB_NextHTML == "")){
    						jQuery(document).unbind('thickbox');
    						goNext();
    					}
    				} else if ( e.which == 188 ){ // display next image 188 (>)
    					if(!(TB_PrevHTML == "")){
    						jQuery(document).unbind('thickbox');
    						goPrev();
    					}
    				}

    and change 190 with 39 and 188 with 37

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic