You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like nanogallery2 a lot and use it for a student association to show and tag images on a wordpress-site. Every member of the association is invited to add descriptions to images. For this, I added a custom textarea-element, allowing text input. Here's a printscreen:
The code which creates the textarea: function zzpImgToolbarCustDisplay( elements, item ) { elements.eq(0).html( "<div><textarea id='txt_zzp_iptc_caption'>" + item.title + "</textarea></div>" ); }
Problem: Users should be able to input text containing blanks and use the left/right keys to move the curser. These keys, however, trigger nanogallery2-actions (space = toggle lightshow, left/right = previous/next slide). Especially the space-bar-behaviour makes it almost impossible to enter text.
Triggering happens in program jquery.nanogallery2.js on lines 10502 ff.
Is there a switch to stop or a possibility to "overwrite" this behaviour? Thanks a lot!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I like nanogallery2 a lot and use it for a student association to show and tag images on a wordpress-site. Every member of the association is invited to add descriptions to images. For this, I added a custom textarea-element, allowing text input. Here's a printscreen:
The code which creates the textarea:
function zzpImgToolbarCustDisplay( elements, item ) { elements.eq(0).html( "<div><textarea id='txt_zzp_iptc_caption'>" + item.title + "</textarea></div>" ); }
Problem: Users should be able to input text containing blanks and use the left/right keys to move the curser. These keys, however, trigger nanogallery2-actions (space = toggle lightshow, left/right = previous/next slide). Especially the space-bar-behaviour makes it almost impossible to enter text.
Triggering happens in program jquery.nanogallery2.js on lines 10502 ff.
Is there a switch to stop or a possibility to "overwrite" this behaviour? Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions