Hi!
I'm want do someStuff() when CTRL-C pressed. I had wrote some code, but it "not enough good". What can I do with it?)
//org.eclipse.draw2d.Shape getShape(){....}
getShape().addKeyListener(new KeyListener(){
@Override
public void keyPressed(KeyEvent ke) {
}
@Override
public void keyReleased(KeyEvent ke) {
/*if CTRL-C pressed*/
if((ke.getState() & KeyEvent.CONTROL) != 0 && 'c' == ('a' + ke.character - 1)){
someStuff();
}
}
});
Thanks.