This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | navigator has no focus | ||
---|---|---|---|
Product: | editor | Reporter: | gawan <gawan> |
Component: | Navigation | Assignee: | Milutin Kristofic <mkristofic> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | erusev, mmirilovic |
Priority: | P3 | Keywords: | FOCUS |
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
navi 1
navi 2 CslNavigatorPanelUI patch |
Description
gawan
2013-01-29 12:48:30 UTC
After press shortcut for show navigator, navigator has no focus. If navigator is docked (pinned) it works correctly. No focus is only if navigator is not always shown. I am using 7.3 rc1 Navigator is not handled by PHP. We just provide elements, which are displayed there. JDK ? I installed ubuntu 12.04 and oracle-java7-installer (Oracle Java(TM) Development Kit (JDK) 7) Ok. I have ubuntu also. You can copy details from Help->About menu item My is: Product Version: NetBeans IDE Dev (Build 201301210001) Updates: Updates available to version , NetBeans 7.3 Beta 2 Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18 1, I minimized navigator. 2, I opened Java file 3, I pressed Ctrl+2 (shortcut for navigator) 4. I have focus and I can move with keyboard arrow keys. Do you mean minimized or floating navigator? Created attachment 131028 [details]
navi 1
Product Version: NetBeans IDE 7.3 RC1 (Build 201301240957) Java: 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04 Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21 System: Linux version 3.2.0-37-generic-pae running on i386; UTF-8; sk_SK (nb) My Process is same except 4. (I cannot move with arrows keys). I attached two screenshots: navi1.png - start position, now I press shortcut for navigator navi2.png - navigator was shown but arrows keys does not not work (has no focus) after I click in navigator, then arrows key works Created attachment 131029 [details]
navi 2
Ok. It cannot be reproduced in java editor, but it is in php editor in nb 7.3. Colleague Honza from platform/navigator will look at it. Created attachment 131054 [details]
CslNavigatorPanelUI patch
After the Navigator window is activated, statement
selectedPanel.getComponent().requestFocus()
is called. Unlike the Java Navigation, CslNavigatorPanelUI does not override this (requestFocus) method, so to fix this issue just apply following patch.
Honza, thank you. There is requestFocusInWindow overriden, I thought it was enough. http://hg.netbeans.org/jet-main/rev/43771533b7fb Integrated into 'main-golden', will be available in build *201302070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/dd21192401bd User: Milutin Kristofic <mkristofic@netbeans.org> Log: #225467 - navigator has no focus *** Bug 226451 has been marked as a duplicate of this bug. *** |