[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/22922] modifiersEx mask in mouseRelease event not correct
From: |
cvs-commit at developer dot classpath dot org |
Subject: |
[Bug swing/22922] modifiersEx mask in mouseRelease event not correct |
Date: |
12 Sep 2005 04:01:10 -0000 |
------- Additional Comments From cvs-commit at developer dot classpath dot org
2005-09-12 04:01 -------
Subject: Bug 22922
CVSROOT: /cvsroot/classpath
Module name: classpath
Branch:
Changes by: Thomas Fitzsimmons <address@hidden> 05/09/12 03:46:42
Modified files:
. : ChangeLog
java/awt/event : InputEvent.java KeyEvent.java MouseEvent.java
native/jni/gtk-peer: gnu_java_awt_peer_gtk_GtkComponentPeer.c
gnu_java_awt_peer_gtk_GtkWindowPeer.c
gtkpeer.h
Log message:
2005-09-11 Thomas Fitzsimmons <address@hidden>
PR swing/22922
* java/awt/event/InputEvent.java (modifiersEx): New field.
(InputEvent): Assume modifiers parameter contains both new- and
old-style masks.
(isShiftDown): Check modifiers for old-style shift mask and
modifiersEx for new-style shift mask.
(isControlDown): Likewise for control mask.
(isMetaDown): Likewise for meta mask.
(isAltDown): Likewise for alt mask.
(isAltGraphDown): Likewise for alt-graph mask.
(getModifiers): Return value of modifiers field.
(getModifiersEx): Return value of modifiersEx field.
* java/awt/event/MouseEvent.java
(MouseEvent(Component,int,long,int,int,int,int,boolean,int)):
Clear button new-style mask for mouse released events.
(paramString): Remove old-style modifier handling.
(readObject): Extend modifiers and assign to modifiersEx.
* java/awt/event/KeyEvent.java (readObject): Extend modifiers and
assign to modifiersEx.
* native/jni/gtk-peer/gtkpeer.h: Define macros for new-style mouse
masks. Define macros for old-style key masks.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
Remove macros for old-style key masks.
(button_to_awt_mods): Always return bitwise OR of new- and
old-style modifiers.
(cp_gtk_state_to_awt_mods): Likewise.
(state_to_awt_mods_with_button_states): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(keyevent_state_to_awt_mods): Likewise.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.4727&tr2=1.4728&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/awt/event/InputEvent.java.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/awt/event/KeyEvent.java.diff?tr1=1.13&tr2=1.14&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/awt/event/MouseEvent.java.diff?tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c.diff?tr1=1.52&tr2=1.53&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c.diff?tr1=1.59&tr2=1.60&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/native/jni/gtk-peer/gtkpeer.h.diff?tr1=1.40&tr2=1.41&r1=text&r2=text
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22922
- [Bug swing/22922] modifiersEx mask in mouseRelease event not correct,
cvs-commit at developer dot classpath dot org <=