Bug reports Found a bug? Post it here please.
Version 6.x > Bug reports > Hitting enter button from textbox triggers Media Modal View modes: 
User avatar
Member
Member
naga12m-gmail - 5/3/2013 6:20:33 AM
   
Hitting enter button from textbox triggers Media Modal
Hi

I 'm having a textbox to enter firstname in cms desk. After entering a name and hitting enter button launches 'Select File' popup showing media library contents. Why the select file option is opening in a modal from the textbox enter event.

How can i avoid this kind of unnecessay file selection.

User avatar
Kentico Support
Kentico Support
kentico_janh - 5/13/2013 6:17:30 AM
   
RE:Hitting enter button from textbox triggers Media Modal
Hello,

This is a standard behavior when there is any control on the page, because the enter action in the one-line text box call its action. However you can customize the \CMSModules\Content\CMSDesk\Edit\Edit.aspx file which is taken as a template under the Form tab and you can write a javascript which disallows the Enter key.

Best regards,
Jan Hermann