public void keyPressed(KeyEvent e) { char ch = e.getKeyChar(); if (ch == '\n' && ! e.isControlDown()) { ch = '\r'; } if (ch != KeyEvent.CHAR_UNDEFINED) { enqueue(vString.New(ch), c.xloc, c.yloc, e); } else if (e.isActionKey()) { enqueue(vInteger.New(e.getKeyCode()), c.xloc, c.yloc, e); } }
public void keyPressed(KeyEvent e)		{}
public void keyPressed(KeyEvent e) {    char ch = e.getKeyChar();    if (ch == '\n' && ! e.isControlDown()) {	// if enter key	ch = '\r';				// change to \r for v9 compat    }    if (ch != KeyEvent.CHAR_UNDEFINED) {	enqueue(vString.New(ch), c.xloc, c.yloc, e);    } else if (e.isActionKey()) {	enqueue(vInteger.New(e.getKeyCode()), c.xloc, c.yloc, e);    }}