KeyListener Not Working In Internet Explorer


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: KeyListener Not Working In Internet Explorer

  1. #1
    Join Date
    Jan 2006
    Posts
    1

    [Solved] KeyListener Not Working In Internet Explorer

    I made a small game

    Play it here

    It works fine in Firefox but the KeyListener doesn't work in Internet Explorer.

    I include the applet with this code:

    Code:
    <!--[if !IE]>-->
    <object classid="java:Shotgun.class" 
            type="application/x-java-applet"
            id="ShotgunApplet" >
    <!--<![endif]-->
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
            id="ShotgunAppletIE" > 
             <param name="code" value="Shotgun" />
    </object> 
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    But also tried this:

    Code:
    <applet id='ShotgunApplet' code='Shotgun.class'></applet>
    The full source code is available from here

    Thanks in advance,
    Frederik Vanderstraeten

    --- Solved ---

    Had to remove the e.consume(); in mousePressed()
    Last edited by StubruFreak; 01-25-2006 at 04:48 PM. Reason: Solved

Similar Threads

  1. Replies: 8
    Last Post: 02-06-2006, 07:56 PM
  2. Replies: 5
    Last Post: 05-26-2005, 06:19 AM
  3. Replies: 2
    Last Post: 04-09-2005, 03:28 PM
  4. Detecting Flash in Internet Explorer.
    By Jose Rodz in forum Web
    Replies: 3
    Last Post: 02-13-2002, 06:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center