The simplest way is to addKeyListener and write your key handling logic in
the keyPressed(KeyEvent evt) method.
public void keyPressed(KeyEvent evt)
{
int keyCode = evt.getKeyCode ();
if(keyCode == KeyEvent.VK_A && evt.isControlDown () && evt.isAltDown ())
{
//do something
}
}
Cheers
Harkishin
-----Original Message-----
From: ravi prakash [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:03 PM
To: swing
Cc: [EMAIL PROTECTED]
Subject: how to trap the Ctrl+Alt+a key events
Hi,
I am trying to capture events Ctrl+Alt+a, i had went through the forums
and i haven't found a solution for this, Could any help me in this with
sample code
Thanks in advance
raviprakash
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing