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.
When you use Alt-Tab to switch between NB and another app and then switch back it can keep the NB IDE in Alt mode. This is dangerous as you may start typing and instead of writing code you could execute an action which could be bad. To reproduce just use Alt-Tab to switch between NB and another program and keep doing it so you are flipping between them and you will see it stuck in Alt-Mode. I think you need to add an item in your onWindowFocus handler that makes sure Alt-mode is off and that the editor window has focus for editing. Thanks.
*** This issue has been marked as a duplicate of 73960 ***