Mac OS X: Made KeyboardEventQueue handle widened char types

This commit is contained in:
Elias Naur 2006-06-27 12:57:04 +00:00
parent 0f12ecee3b
commit 7ac72d9c32
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ final class KeyboardEventQueue extends EventQueue implements KeyListener {
key_down_buffer.position(old_position); key_down_buffer.position(old_position);
} }
private synchronized void handleKey(int key_code_mapped, byte state, char character) { private synchronized void handleKey(int key_code_mapped, byte state, int character) {
if ( character == KeyEvent.CHAR_UNDEFINED ) if ( character == KeyEvent.CHAR_UNDEFINED )
character = Keyboard.CHAR_NONE; character = Keyboard.CHAR_NONE;
/* Ignore repeating presses */ /* Ignore repeating presses */