From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8427 invoked by alias); 9 Feb 2005 09:38:38 -0000 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org Received: (qmail 8408 invoked by uid 48); 9 Feb 2005 09:38:37 -0000 Date: Wed, 09 Feb 2005 09:44:00 -0000 From: "hendrich at informatik dot uni-hamburg dot de" To: java-prs@gcc.gnu.org Message-ID: <20050209093831.19842.hendrich@informatik.uni-hamburg.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug AWT/19842] New: MouseEvent ignores Button2 and Button3 X-Bugzilla-Reason: CC X-SW-Source: 2005-q1/txt/msg00301.txt.bz2 List-Id: The attached testcase demonstrates the java.awt.event.MouseEvent internally knows about the middle and right mouse buttons (because the correct data shows up in event.toString()). However, querying those values via getButton() or getModifiers() or InputEvent.isAltDown() / isMetaDown() always returns false. This makes it impossible to detect middle/right button clicks in user programs. Testcase usage: compile and run, then try mouse-clicks on the frame using all mouse buttons and the (shift/alt/meta/control)-key+button1 variants. Might use java.awt.Robot to automate... -- Summary: MouseEvent ignores Button2 and Button3 Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: AWT AssignedTo: fitzsim at redhat dot com ReportedBy: hendrich at informatik dot uni-hamburg dot de CC: fitzsim at redhat dot com,gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19842