src/macosx/classes/sun/lwawt/macosx/NSEvent.java

Print this page

        

*** 45,61 **** private int absX; private int absY; // Key event information private short keyCode; private String charactersIgnoringModifiers; // Called from native ! NSEvent(int type, int modifierFlags, short keyCode, String charactersIgnoringModifiers) { this.type = type; this.modifierFlags = modifierFlags; this.keyCode = keyCode; this.charactersIgnoringModifiers = charactersIgnoringModifiers; } // Called from native NSEvent(int type, int modifierFlags, int clickCount, int buttonNumber, --- 45,63 ---- private int absX; private int absY; // Key event information private short keyCode; + private String characters; private String charactersIgnoringModifiers; // Called from native ! NSEvent(int type, int modifierFlags, short keyCode, String characters, String charactersIgnoringModifiers) { this.type = type; this.modifierFlags = modifierFlags; this.keyCode = keyCode; + this.characters = characters; this.charactersIgnoringModifiers = charactersIgnoringModifiers; } // Called from native NSEvent(int type, int modifierFlags, int clickCount, int buttonNumber,
*** 119,134 **** String getCharactersIgnoringModifiers() { return charactersIgnoringModifiers; } @Override public String toString() { return "NSEvent[" + getType() + " ," + getModifierFlags() + " ," + getClickCount() + " ," + getButtonNumber() + " ," + getX() + " ," + getY() + " ," + getAbsX() + " ," + getAbsY()+ " ," + getKeyCode() + " ," ! + getCharactersIgnoringModifiers() + "]"; } /* * Converts an NSEvent button number to a MouseEvent constant. */ --- 121,140 ---- String getCharactersIgnoringModifiers() { return charactersIgnoringModifiers; } + String getCharacters() { + return characters; + } + @Override public String toString() { return "NSEvent[" + getType() + " ," + getModifierFlags() + " ," + getClickCount() + " ," + getButtonNumber() + " ," + getX() + " ," + getY() + " ," + getAbsX() + " ," + getAbsY()+ " ," + getKeyCode() + " ," ! + getCharacters() + " ," + getCharactersIgnoringModifiers() + "]"; } /* * Converts an NSEvent button number to a MouseEvent constant. */