This is a migrated thread and some comments may be shown as answers.
Pressing Enter Opens Rad Window
1 Answer 11 Views
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 25 Mar 2009, 04:43 PM

The JavaScript placed on the page by the window seems to detect any time the user presses the enter key and opens the window.... Since I have search field on that page this causes a problem.  Suggestions?

 function RadWindowprompt_detectenter(id, ev, input)  
                    {                             
                        if (!ev) ev = window.event;                  
                        if (ev.keyCode == 13)  
                        {                                                                     
                            var but = input.parentNode.parentNode.getElementsByTagName("A")[0];                           
                            if (but)  
                            {                             
                                if (but.click) but.click();  
                                else if (but.onclick)  
                                {  
                                    but.focus(); var click = but.onclick; but.onclick = nullif (click) click.call(but);                              
                                }  
                            }  
                           return false;  
                        }   
                        else return true;  
                    }     

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 26 Mar 2009, 04:15 PM
Hi Richard,

Could you please provide more details about your exact setup and code logic? I am asking you this because you are the first to report such issue and we cannot reproduce it locally.
It will be best to open a support ticket and send us a small sample page that shows the problem - we will check it and do our best to help.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Asked by
Richard
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or