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 195683 - window focus changes when "step {into,over,out}" goes to another file
Summary: window focus changes when "step {into,over,out}" goes to another file
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 00:12 UTC by tbrunhoff
Modified: 2011-10-18 11:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
options export file. (4.53 MB, application/zip)
2011-02-19 00:12 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2011-02-19 00:12:02 UTC
When running gdb and stepping through code, if a step opens another file, the focus sometimes change so that the hot key for the step is no longer active.

I have the following two mappings:
 - F11 mapped to "step into"
 - F7  build main project
When I use F11 to walk through code, it will eventually return from a function/method. If that return goes to another file, the window focus will change so that F11 no longer applies to the debugger, and a build is executed!

There appears to be two problems:
1. Focus may change so that F11 is not interpreted as "step into"
2. The "build main project" has F11 hardwired so that if the focus is right the shortcut configured in options is ignored and F11 is interpreted as a "build" command.

Options export is attached.

Product Version: NetBeans IDE Dev (Build 201102170501)
Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09
System: Linux version 2.6.35.10-74.fc14.x86_64 running on i386; UTF-8; en_US (nb)
Userdir: /home/toddb/.netbeans/dev
Comment 1 tbrunhoff 2011-02-19 00:12:50 UTC
Created attachment 106179 [details]
options export file.
Comment 2 Egor Ushakov 2011-03-04 18:53:46 UTC
reproduced, F11 works as build action when focus is in any of: project output pane or debugger console. To reproduce it you need to click on a particular tab, not inside the output. In the latter case shortcut will not work at all.
Comment 3 tbrunhoff 2011-03-04 19:03:14 UTC
I understand that you have reproduce problem #1. But from your comments, it looks like you are missing the point about problem #2: I have reassigned F11... it is no longer assigned to "build". But it still invokes build! And it still appears in the menu item as the hotkey for "build".
Comment 4 Egor Ushakov 2011-03-04 19:15:51 UTC
No need to worry, I've got that, reassigning to the editor for evaluation:
Even if you change "build main project" shortcut (or even clear it) toolbar
action still shows (F11) in action tooltip. And I believe in some cases F11
still works as Build (if focus is in some unusual places like in custom
components)
Comment 5 Svata Dedic 2011-10-11 11:36:36 UTC
The 'F11 always builds' issue seems to be fixed in 7.1 dev.  Lost keybindings issue is still present.
Comment 6 Svata Dedic 2011-10-18 11:11:47 UTC
Correction :)
I've created a sample project and stepped out of a method to a different file. Even after that, F11 worked OK as 'step out' and the actions were marked OK in the menu.

So - seems to work OK; please re-check in 7.1 beta.