# Lightbox issue

**URL:** <https://www.ruby-forum.com/t/lightbox-issue/161950>\
**Category:** Rails\
**Created:** [March 4, 2009, 5:55am UTC](https://www.ruby-forum.com/t/lightbox-issue/161950 "2009-03-04T05:55:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@radha](https://www.ruby-forum.com/u/radha)\
**Post date:** [March 4, 2009, 5:55am UTC](https://www.ruby-forum.com/t/lightbox-issue/161950/1 "2009-03-04T05:55:00Z")

</div>

Hello friends,

I m using lightbox in my rails application. After clicking on a link,  
lightbox opens but my problem is

when user goes on pressing enter without clicking on a lightbox window,  
multiple lighboxs open.

How to prevent this.

any suggestions are greatly appreciated.

Thanks…  
below is my code…

 \<% if @file\_currency %\>\<%=link\_to "#{@file\_currency.currency}"+"#{number\_with\_precision(@revenues,2)}",{:action=\>"exchange\_currency", :id =\> open\_files.id, :revenue =\> @revenues},:class =\> 'lbOn' %\>\<% end %\>
