From commits-return-4058-archive-asf-public=cust-asf.ponee.io@netbeans.apache.org Sat Feb 24 18:11:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 10737180656 for ; Sat, 24 Feb 2018 18:11:03 +0100 (CET) Received: (qmail 86311 invoked by uid 500); 24 Feb 2018 17:11:03 -0000 Mailing-List: contact commits-help@netbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@netbeans.apache.org Received: (qmail 86302 invoked by uid 99); 24 Feb 2018 17:11:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Feb 2018 17:11:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 73683C01D5 for ; Sat, 24 Feb 2018 17:11:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xXSjxwNbzZZN for ; Sat, 24 Feb 2018 17:11:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id EDF485F341 for ; Sat, 24 Feb 2018 17:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 63F5FE02AC for ; Sat, 24 Feb 2018 17:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 16BBC218FC for ; Sat, 24 Feb 2018 17:11:00 +0000 (UTC) Date: Sat, 24 Feb 2018 17:11:00 +0000 (UTC) From: "Eirik Bakke (JIRA)" To: commits@netbeans.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (NETBEANS-403) Pressing Home/End scrolls to beginning/end of whole document if tooltip is open MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NETBEANS-403?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 375682#comment-16375682 ]=20 Eirik Bakke edited comment on NETBEANS-403 at 2/24/18 5:10 PM: --------------------------------------------------------------- Doing a bit of research on this, the problem seems to be that javax.swing.t= ext.DefaultEditorKit$EndAction.actionPerformed is called instead of org.net= beans.editor.BaseKit$EndLineAction.actionPerformed whenever a popup is open= when the "End" key is pressed (and presumably the same for the Home key). In the normal case, the stack trace is as follows: {noformat} at org.netbeans.editor.BaseKit$EndLineAction.actionPerformed(BaseKit.java:3= 539) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:347) at org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEdi= torAction.java:468) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at javax.swing.JComponent.processKeyEvent(JComponent.java:2845) ...standard AWT trace follows... {noformat} In the popup case, the stack trace is as follows: {noformat} at javax.swing.text.DefaultEditorKit$EndAction.actionPerformed(DefaultEdito= rKit.java:2134) at org.netbeans.editor.PopupManager$PopupKeyListener.keyPressed(PopupManage= r.java:514) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249) at java.awt.Component.processKeyEvent(Component.java:6491) at javax.swing.JComponent.processKeyEvent(JComponent.java:2832) ...standard AWT trace follows, same as in the non-popup case... {noformat} was (Author: ebakke): Doing a bit of research on this, the problem seems to be that javax.swing.t= ext.DefaultEditorKit$EndAction.actionPerformed is called instead of org.net= beans.editor.BaseKit$EndLineAction.actionPerformed whenever a popup is open= when the "End" key is pressed (and presumably the same for the Home key). In the normal case, the stack trace is as follows: {noformat} at org.netbeans.editor.BaseKit$EndLineAction.actionPerformed(BaseKit.java:3= 539) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:347) at org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEdi= torAction.java:468) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at javax.swing.JComponent.processKeyEvent(JComponent.java:2845) ...standard AWT trace follows... {noformat} In the popup case, the stack trace is as follows: {code:java} at javax.swing.text.DefaultEditorKit$EndAction.actionPerformed(DefaultEdito= rKit.java:2134) at org.netbeans.editor.PopupManager$PopupKeyListener.keyPressed(PopupManage= r.java:514) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:250) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249) at java.awt.Component.processKeyEvent(Component.java:6491) at javax.swing.JComponent.processKeyEvent(JComponent.java:2832) ...standard AWT trace follows, same as in the non-popup case... {code} > Pressing Home/End scrolls to beginning/end of whole document if tooltip i= s open > -------------------------------------------------------------------------= ------ > > Key: NETBEANS-403 > URL: https://issues.apache.org/jira/browse/NETBEANS-403 > Project: NetBeans > Issue Type: Bug > Components: editor - Key bindings > Affects Versions: 8.2, 9.0 > Reporter: Eirik Bakke > Priority: Major > Attachments: HomeEndBug.png > > > When a tooltip is shown in the Java editor, for instance because the mous= e is hovering over an error indication, pressing the Home or End keys on th= e keyboard scrolls the entire document all the way to the top or end, respe= ctively instead of to the beginning or end of the current line. This is ext= remely disruptive, and likely very confusing to users, as it only happens i= n the stated situation. > A workaround is to move the mouse pointer away from the editor to close t= he popup after examining an error. Most users will not be able to discover = this workaround, though--for myself, it took two weeks to discover the corr= elation between the tooltip being open and the bug occurring. > This bug seems to have been introduced in 8.2, and I just=C2=A0confirmed = that it is still present on the new Apache NetBeans 9.0 beta release. > This issue was first reported as issue #270842 by timothyrheider in the o= ld BugZilla tracker, on 2017-06-09: > https://netbeans.org/bugzilla/show_bug.cgi?id=3D270842 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org For additional commands, e-mail: commits-help@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists