Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN hijacks enter key pressDNN hijacks enter key press
Previous
 
Next
New Post
3/22/2010 7:10 AM
 

 You can use this code for entire application, even if  your page contains multiple forms and they have different IDs. Just put this code inside a common js file and include it in every page.

 
$(function() {
 
    $("form").bind("keypress"function(e) {
            if (e.keyCode == 13) return false;
      });
 
});
 
 
New Post
8/27/2010 4:33 PM
 
Did some one find any permanent solution for this, i.e. even admin is login, enter key should trigger button click event instead of going to admin page....
 
New Post
8/20/2011 6:25 PM
 
Whats the latest status on this VERY annoying bug in DNN? We have implemented our own login/logout module and DNN seem to make it the default recipient of any ENTER key press that isn't specifically handled in our own modules. Like on our feedback page, using the standard DNN Feedback module, when a user tries to submit a form by hitting enter, what instead happens is that the user gets logged out or end up at the login page. This is very bad and doesn't seem to have been fixed in 5.6.3 either. 

Nothing seem to happen here either:

http://support.dotnetnuke.com/issue/V...


Is there any work arounds we could use globally, that wouldn't cause any other problems, meanwhile? If it can't be done, what code can we use in our own login/logup module to prevent it from being fired by ENTER key presses (or at least prevent any action in the event handler)?
 
New Post
8/21/2011 7:20 AM
 
Just thought we should share our simple solution to this, which is quite similar to the "Russian space pen"


Just add another button before the one that gets fired and have that catch the event instead. There are several ways to do this, this is one solution:




            <asp:ImageButton ID="MyButton" runat="server" 
                ImageUrl="myimage.jpg" 
                Height="0px" Width="0px" OnClientClick="return false" />


Please note that this solution isn't something that will work for all, if you are logged in with admin rights and have the control panel at the top, it will catch the event instead. So this is still a very annoying bug in DNN that needs to be fixed. Since our customers does not have any admin rights, this won't be a problem for us though (unless you are admin and do stuff like typing in a username in the "User account" module and hits enter....)


 
New Post
11/2/2012 7:06 PM
 
Has there been any further development with this issue? It's affecting a few of my sites running 6.2.2.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN hijacks enter key pressDNN hijacks enter key press


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out