Hi Vladimir,

I got a popup window with this assertion, if I try an `Autoinsert
import statement` using ALT-ENTER.
I use linux, jdk1.4.0 from Sun, and 634.
I found out, that the jdk1.4.0 and also the 1.4.1beta interprete
my keybords ALT-key as Meta-modifier instead as Alt-modifier.

Under linux, and jdk1.4.0 and Idea 3.0 eap,
I'm not be able to perform any ALT-xxxx key action!

But I afraid, Sun is seeing this as new feature, not as bug.
So the intelliJ developers should think about this problem.

Under jdk 1.3.1 and the same machine and 629, everythink works fine.
Under Windows and jdk1.4.0, everything works fine.

Here is still a small program to figure out, how your jdk is
interpreting the ALT key (ALT-C) on the keyboard.

------snipplet--------------------
import java.awt.*;
import java.awt.event.*;
public class KeyTestAWT extends Frame
                      implements KeyListener {
    public KeyTestAWT() {
       TextArea ta = new TextArea();
       ta.addKeyListener(this);
       add( ta );
       pack();
       setVisible(true);
    }

    public void keyPressed( KeyEvent ev ) {
       if( ev.getKeyCode() == KeyEvent.VK_C && ev.isControlDown() )
          System.out.println("Ctrl-C detected!");
       if( ev.getKeyCode() == KeyEvent.VK_C && ev.isAltDown() )
          System.out.println("Alt-C detected!");
       if( ev.getKeyCode() == KeyEvent.VK_C && ev.isMetaDown() )
          System.out.println("Meta-C detected!");
    }
    public void keyReleased(KeyEvent ev ) { }
    public void keyTyped(   KeyEvent ev ) { }

    public static void main(String[] args) {
       new KeyTestAWT();
    }
}
------e.o.snipplet----------------


best regards,
Joerg
----------------------------------------------------------------------
Hello Juan,

could you please describe in more details how did you get this exception?
Perhaps you opened some dialog and pressed enter or sometghing like that...

Best regards,
     Vladimir Kondratyev
_____________________
JetBrains

Juan Casares wrote:
  > [5218093]  ERROR -        com.intellij.editor.d.q - Assertion failed:
  > nontyped character in keytyped
  > java.lang.Throwable
  >         at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:33)
  >         at com.intellij.editor.d.c.keyTyped(c.java:0)
  >         at java.awt.Component.processKeyEvent(Component.java:4976)
  >         at javax.swing.JComponent.processKeyEvent(JComponent.java:2372)
  >         at java.awt.Component.processEvent(Component.java:4830)
  >         at java.awt.Container.processEvent(Container.java:1525)
  >         at java.awt.Component.dispatchEventImpl(Component.java:3526)
  >         at java.awt.Container.dispatchEventImpl(Container.java:1582)
  >         at java.awt.Component.dispatchEvent(Component.java:3367)
  >         at
  > java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1700
  > )
  >         at
....


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to