[CLOSED] When typing the ESC key twice all form controls lose values

  1. #1

    [CLOSED] When typing the ESC key twice all form controls lose values

    Hi,
    Browser versions tested against:
    IE8
    Description:
    When typing the ESC key twice. When I do this all form controls lose values. Evething gets cleared.
    Last edited by geoffrey.mcgill; Dec 23, 2013 at 2:57 PM. Reason: [CLOSED]
  2. #2
    I found a solution, an my master page I just added this code :
    window.document.onkeydown = function (eventRef)
        {
            if ( !eventRef )
                eventRef = event;
    
            var keyStroke = (eventRef.keyCode) ? eventRef.keyCode : ((eventRef.charCode) ? eventRef.charCode : eventRef.which);
    
            if ( keyStroke == 27 )
                return false;
        }
  3. #3
    Hi @Daly_AF,

    This weird action is by default in IE.
    http://www.sencha.com/forum/showthread.php?104354

    Your solution is good.

Similar Threads

  1. [CLOSED] Retrieving ComboBox Values from Form
    By extnetuser in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 10, 2013, 9:11 AM
  2. [CLOSED] Is it possible to control child form controls from main form?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 13, 2012, 12:24 PM
  3. [Razor] Populating form values from controller
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 07, 2012, 10:42 AM
  4. How to get selected values form grid in code behind
    By harshad.jadhav in forum 1.x Help
    Replies: 1
    Last Post: Jul 12, 2010, 8:51 AM
  5. [CLOSED] Retrieving form values
    By sz_146 in forum 1.x Help
    Replies: 2
    Last Post: Oct 24, 2008, 5:06 AM

Posting Permissions