• Post Reply Bookmark Topic Watch Topic
  • New Topic

frameset and shortcut keys problem  RSS feed

 
somayeh khodadad
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
I have a jsp page. I used frameset tag and i have two frames in my page. The first frame loads a web page that i have defined some shortcut keys for it and they work well in this page. but i have a problem when the focus of main page is on second frame . at this time when i press one of that shortcut keys, the keys doesn't work and I have to focus on first frame to handle the key event.
I want to know how can i use that shortcut keys in the main jsp page when the focus is not on first frame ?

thanks in advance,
Somayeh
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66262
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with JSP. Moved to the HTML forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at this time when i press one of that shortcut keys, the keys doesn't work and I have to focus on first frame to handle the key event.


That is how it should work.

Only way around it is to have the shortcut keys listen at the parent level.

In this day in age why are you using frames?

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!