Microsoft KB Archive/191931

= FIX: KeyStrokes in a Dialog Box are Preprocessed by IE =

Article ID: 191931

Article Last Modified on 11/24/2003

-

APPLIES TO


 * Microsoft Java Virtual Machine
 * Microsoft Internet Explorer 2.0
 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Explorer 3.01
 * Microsoft Internet Explorer 3.02
 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 128-Bit Edition
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.5
 * Microsoft Internet Explorer 1.0
 * Microsoft Internet Explorer 2.0
 * Microsoft Internet Explorer 3.0
 * Microsoft Internet Explorer 3.01
 * Microsoft Internet Explorer 3.02
 * Microsoft Internet Explorer 4.0 128-Bit Edition
 * Microsoft Internet Explorer 4.01 128-Bit Edition
 * Microsoft Internet Explorer 5.0
 * Microsoft Internet Explorer 5.01
 * Microsoft Internet Explorer 5.5
 * Microsoft Internet Explorer 3.2
 * Microsoft Internet Explorer 4.0 128-Bit Edition

-



This article was previously published under Q191931



SYMPTOMS
If an applet launches a dialog box with a Textfield, and you enter some characters in it and delete them using the BACKSPACE key, you will notice that it causes the underlying Internet Explorer 4.0 page to go back one page or shutdown.



CAUSE
Internet Explorer 4.0 captures the keystroke and interprets them as GO BACK; that is, pressing the BACK button in the page.



RESOLUTION
To fix the problem, use Microsoft Internet Explorer 4.01, which you can download from

http://www.microsoft.com/ie/.



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in the Microsoft Internet Explorer 4.01.



Steps to Reproduce Behavior
  Create a new Java Applet (TestKey.java) as follows: import java.applet.*; import java.awt.*;

public class TestKey extends Applet {        public void start {           Component c = this; while(!(c instanceof Frame)) c = c.getParent; Dialog d = new Dialog((Frame)c, "hi", false); d.setBounds(200,200,200,200); d.setLayout(null);

TextField t = new TextField; t.setBounds(50,50,100,30); d.add(t); d.show; }     }                      Create an HTML file (TestKey.html) for the above applet:  IE 4.0 BackSpace Problem  Type characters with focus in the Dialog's Text field and delete them using BackSpace Key <applet code="TestKey.class" width=400 height=475> </BODY> </HTML> </li>  Compile the above Applet: JVC TestKey.java </li> Load the Web page (TestKey.html).</li></ol>

In Internet Explorer 4.0 you will notice that while trying to delete characters in the TextField, Internet Explorer either scrolls back one page, just as if you had pressed the Back button or it shuts down.

The problem doesn't occur in Internet Explorer 4.01.

Additional query words: keystroke backspace delete

Keywords: kbbug kbfix KB191931

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.