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.

Bug 212043 - Keystrokes stolen by open component even without focus
Summary: Keystrokes stolen by open component even without focus
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: FOCUS
Depends on:
Blocks:
 
Reported: 2012-05-03 20:29 UTC by Jesse Glick
Modified: 2012-05-07 08:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-05-03 20:29:57 UTC
JDK 7, Ocean, Ubuntu. There is an ongoing problem with keyboard usage in the presence of specialty windows (i.e. not the editor or explorer views): they capture all sorts of keystrokes that you would want to send to the app globally, sometimes even when the window does not have focus. I am not sure to what extent this is a problem in Swing vs. NetBeans. Examples:

1. With a Bugzilla issue open and fronted, it is impossible to do much of anything from the keyboard, such as access the main menu bar using mnemonics. If you press Alt-F intending to open the File menu, the Platform field in the bug form gets focus instead. You _can_ use Ctrl-1 to open and focus the Projects tab, but Alt-F still focuses the Platform field - without the bug window being displayed as focused. The only workaround (without using the mouse) is to open Projects, find some random file, and open that file (or use Ctrl-TAB if you already had some files open); once the bug window is hidden, all is normal.

2. Open a heap dump and run some analysis in the Analysis tab, and click on some part of the results text. Now try to open a project mentioned in the analysis using Ctrl-Shift-O. Rather than open the Open Project dialog, the results are right-justified or toggled back to left justification if you try it again. (No idea why.) In this case it does suffice to focus another window.
Comment 1 Stanislav Aubrecht 2012-05-07 08:24:25 UTC
(In reply to comment #0)
> JDK 7, Ocean, Ubuntu. There is an ongoing problem with keyboard usage in the
> presence of specialty windows (i.e. not the editor or explorer views): they
> capture all sorts of keystrokes that you would want to send to the app
> globally, sometimes even when the window does not have focus. I am not sure to
> what extent this is a problem in Swing vs. NetBeans. Examples:
> 
> 1. With a Bugzilla issue open and fronted, it is impossible to do much of
> anything from the keyboard, such as access the main menu bar using mnemonics.
> If you press Alt-F intending to open the File menu, the Platform field in the
> bug form gets focus instead. You _can_ use Ctrl-1 to open and focus the
> Projects tab, but Alt-F still focuses the Platform field - without the bug
> window being displayed as focused. The only workaround (without using the
> mouse) is to open Projects, find some random file, and open that file (or use
> Ctrl-TAB if you already had some files open); once the bug window is hidden,
> all is normal.

I filed bug #212157

> 
> 2. Open a heap dump and run some analysis in the Analysis tab, and click on
> some part of the results text. Now try to open a project mentioned in the
> analysis using Ctrl-Shift-O. Rather than open the Open Project dialog, the
> results are right-justified or toggled back to left justification if you try it
> again. (No idea why.) In this case it does suffice to focus another window.

I found this in BasicLookAndFeel for FormattedTextField:
"control shift O", "toggle-componentOrientation",
So it seems that single shortcut is reserved for changing the component orientation. We could remove this key binding from L&F default but I don't think it's worth messing with it. Please reopen if you disagree, thanks.