Changing key values (2)


class ToUpper implements KeyListener {
    
    public void keyTyped(KeyEvent e) {
        // empty
    }

    public void keyPressed(KeyEvent e) {
        e.setModifiers(Event.SHIFT_MASK);
    }

    public void keyReleased(KeyEvent e) {
        // empty
    }
}


Slide 47 ©Copyright 1997 Jan Newmarch