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 108213 - control-tab should switch editor tabs
Summary: control-tab should switch editor tabs
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 19:13 UTC by jamespb
Modified: 2012-09-20 07:51 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-06-26 19:13:15 UTC
NetBeans should use the Firefox (and many other) convention of control-tab switching tabs in the editor, and
shift-control-tab switching tabs the other way.

Right now, hitting control-tab brings up a little context menu of the available editor panes; I don't see how that's
better than just switching me to the pane in the first place, and dropping that context menu.
Comment 1 jamespb 2007-06-26 19:13:34 UTC
Product Version: NetBeans Ruby IDE 070625 Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista
version 6.0 running on x86; Cp1252; en_US (nbrubyide) Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev
Comment 2 Martin Krauskopf 2007-06-26 21:38:01 UTC
This is all about usability and probably every user has its own opinion. A lot of NetBeans users are used to this. I'm
using Firefox, had been using Eclipse and using NetBeans and I really like the current behavior. Moreover when you
release the Ctrl+Tab in 200ms (IIRC) the popup does not appear at all. It's just all about the habit and a lot of
current user likes it. So it is rather about the question whether to support customizable behavior somehow. Reassigning
to appropriate component. Also AFAIK Eclipse's Ctrl+F6 behaves very similar way.
Comment 3 jamespb 2007-07-06 19:07:52 UTC
Fair enough, although after using NetBeans a little more I'd still describe the current behavior as unpleasant and
abnormal.  Firefox and IE don't agree with the way you do tabbed browsing, and switching to NetBeans behavior is always
jarring.  

Releasing the keys quickly isn't related to the weirdness; the problem is that I expect control-tab so allow me to page
through the open tabs, seeing the content.  It'd be nice to have an option to get that behavior.
Comment 4 Martin Krauskopf 2007-07-09 08:52:42 UTC
> It'd be nice to have an option to get that behavior.

It is there. You can go to Menu: Tools -> Options -> Keymap. There are some predefined profiles, like NetBeans, Eclipse,
Emacs. Also you can assign your own keybinding for particular actions only. E.g.

Go To -> Previous Tab (Ctrl+PageUp)
         Next Tab (Ctrl+PageDown)

So it is customizable. This enhancement is just about the default binding.
Comment 5 jamespb 2007-07-09 17:10:18 UTC
That's a fine solution - I'd just close this report then.

Except that control-pageup and control-pagedown don't do anything in Windows, but I think that's a different bug than
this one.  (I submitted http://www.netbeans.org/issues/show_bug.cgi?id=109150)
Comment 6 jamespb 2007-07-26 00:42:16 UTC
control-pageup/pagedown are working to change tabs in windows in build:

Product Version: NetBeans Ruby IDE 070725 Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista
version 6.0 running on x86; Cp1252; en_US (nbrubyide) Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev

(I'd close this, but I don't know if you want submitters to close bugs, or to leave that to eng/qa)
Comment 7 Stanislav Aubrecht 2007-08-03 18:11:25 UTC
closing as fixed (see the previous comment)
Comment 8 ingulp 2012-09-19 18:45:51 UTC
The fix does not solve the issue of users wanting to have ctrl+tab/ctrl+shift+tab customized.  Regardless of what I map those keys to, the dialog box is still opened.  I currently have ctrl+tab set to "next tab" and ctrl+shift+tab set to "previous tab," but to no avail.

Running 7.2 (Build 201207171143)
Comment 9 Stanislav Aubrecht 2012-09-20 07:51:55 UTC
(In reply to comment #8)
> The fix does not solve the issue of users wanting to have
> ctrl+tab/ctrl+shift+tab customized.  Regardless of what I map those keys to,
> the dialog box is still opened.  I currently have ctrl+tab set to "next tab"
> and ctrl+shift+tab set to "previous tab," but to no avail.
> 
> Running 7.2 (Build 201207171143)

Please file a new enhancement issue if you want to have Ctrl+Tab keys customized.