• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File input browse button and keyboard support

 
Gaurav Singh
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a File Input field on my HTML form.

Now, if I am using only the keyboard, I can tab on to put focus on the browse button, but when I press enter to open the Browse dialog (on IE 6.0) it submits the form. If I hit space here, it results in opening of Browse dialog.
I tried the same on Firefox. Here pressing enter key results in the browse dialog to be opened.

Can anybody suggest as to how I can configure it to open the browse dialog when enter key is pressed in IE.

Thanks
Gaurav
 
Divya Guttikonda
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try creating a dummy form with a single hidden field.Not sure if this works but just a suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic