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 66219 - [50cat] Keyboard input is locked
Summary: [50cat] Keyboard input is locked
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Solaris
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 61390 (view as bug list)
Depends on: 66217
Blocks:
  Show dependency tree
 
Reported: 2005-10-07 09:44 UTC by vanob
Modified: 2007-11-05 13:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
output (4.26 KB, text/plain)
2005-11-10 16:57 UTC, vanob
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vanob 2005-10-07 09:44:10 UTC
[ BUILD # : 200509261930 ]
[ JDK VERSION : 1.5.0_05 ]

I cannot reproduce the case every time but here are the steps

1. Open some file in the editor
2. Press ctrl and F and G buttons together quickly

Two dialogs appear: find and go to line
find has the input focus.
3.Press escape

You cannot input with the keyboard

Of course I never press f and g buttons together
intentionally but sometimes you make mistakes.
Comment 1 Marian Mirilovic 2005-10-07 11:07:56 UTC
Editor actions ? ... probably general problem of actions ... feel free to reassigne.
Comment 2 Miloslav Metelka 2005-10-07 17:13:31 UTC
I'm able to reproduce the appearance of the two dialogs on my Linux FC3 but I'm
still able to type from the keyboard then. Could you please describe your
environment more in detail? Thanks.
 Romane could you please try to reproduce on Solaris? Thanks.
Comment 3 Martin Roskanin 2005-10-07 17:19:48 UTC
I suspect org.netbeans.editor.extKeyEventBlocker
Comment 4 vanob 2005-10-08 09:03:29 UTC
My environment is solaris express 9/05 (build 21) on amd 64,
JDS 3.0. netbeans and java version is indicated in the report
Comment 5 Roman Strobl 2005-10-10 10:28:32 UTC
I am not able to invoke both Find and Go to line dialogs at once.

My suspicion is that this is a known JDK bug on Linux and Solaris with blocked
input. It occurs on more dialogs, but Find dialog is best known for this issue.
Try to reproduce the issue just on the Find dialog. 

The workaround is to click on any button in the dialog but do not release the
mouse button and move the mouse away from the button instead. Than you can type
input again.

I will try to find the JDK bug number.
Comment 6 Roman Strobl 2005-10-10 10:41:35 UTC
It is probably this JDK bug: 

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6183877

It is fixed in Mustang. Please try to reproduce it with Mustang dev build. See
also issue 50423 and issue 58166. 
Comment 7 Martin Roskanin 2005-11-03 09:19:05 UTC
It seems like a dulicate of the issue #50423
But to be sure before I will make a duplicate, two questions:

1. Is input blocked in the find dialog or in go to class dialog?
(if yes, please make a duplicate of issue #50423)

OR

2. Is input blocked in editor?
(if yes, try to reproduce the problem again with netbeans running with a debug flag
-J-Dnetbeans.debug.editor.blocker=true and attach an output of console as
attachement - you should see messages like: "attaching listener...", "removing
listener from..." and potential "consuming keyPressed event...")
Comment 8 Martin Roskanin 2005-11-07 15:48:23 UTC
*** Issue 61390 has been marked as a duplicate of this issue. ***
Comment 9 Martin Roskanin 2005-11-10 13:35:21 UTC
Vano, I believe this issue could happen just after you have reproduced problem
mentioned in issue #66217
Looking in the code of FindDialogSupport I see, there is stopping of
KeyEventBlocker on focusGained or windowDeactivated. It seems it is not called
in your case.
Comment 10 vanob 2005-11-10 16:12:23 UTC
I don't want to use mustang, it's unstable. Is there a way to port the fix
back to any jdk 5 update?
Comment 11 Martin Roskanin 2005-11-10 16:35:19 UTC
Why mustang? Try to reproduce this issue again with the debug flag
-J-Dnetbeans.debug.editor.blocker=true on jdk 1.5.0_05
and attach an output.

I think this can be reproduced by this scenario:
1. try to reproduce the issue  #66217
2. If focus will not be in find dialog, close the dialog.
3. Keyboard should be locked...
Comment 12 vanob 2005-11-10 16:56:32 UTC
Ok I followed your steps. Attaching output
Comment 13 vanob 2005-11-10 16:57:29 UTC
Created attachment 26836 [details]
output
Comment 14 Martin Roskanin 2005-11-11 07:49:15 UTC
Thanks for debugging.
Yes, stopBlocking method is not called.
(As a workaround try to open find dialog again and bring focus to find what text
area...)
Changing to P2
Comment 15 Martin Roskanin 2005-11-15 10:20:54 UTC
posibly fixed in [maintrunk]

/cvs/editor/libsrc/org/netbeans/editor/ext/FindDialogSupport.java,v  <-- 
FindDialogSupport.java
new revision: 1.71; previous revision: 1.70

/cvs/editor/libsrc/org/netbeans/editor/ext/GotoDialogSupport.java,v  <-- 
GotoDialogSupport.java
new revision: 1.22; previous revision: 1.21

Because I was not able to reproduce it,
could you please test and verify it?
Thanks
Comment 16 vanob 2005-11-15 11:07:55 UTC
So this will be in build 200511151900?
If yes I'll be able to test it tomorow.
Comment 17 Martin Roskanin 2005-11-15 11:54:58 UTC
yes, it will be in tomorrow's build. Thanks in advance.
Comment 18 vanob 2005-11-18 11:05:11 UTC
Tested on 200511171900