rockstardev
rockstardev

Reputation: 13527

CTRL-TAB in NetBeans not working as it should?

Currently, if I have 4 tabs and I press CTRL TAB, it does not go from 1 to 2, then from 2 to 3 and so on. It jumps between windows in the order I last had them open.

  1. Is there a way to switch Zend so that if I press CTRL-TAB it goes from 1 to 2, 2 to 3 and so on.
  2. Ideally, will this also allow for CTRL-SHIFT-TAB to go from 4 to 3, then 3 to 2 and so on?

Upvotes: 9

Views: 1523

Answers (1)

bcause
bcause

Reputation: 1313

Depending on the version of your NetBeans installation, the Ctrl+Tab, Ctrl+Shift+Tab shortcuts are hardcoded to the PopupSwitcher which appears when pressing Ctrl+Tab/Ctrl+Shift+Tab a little longer or repeatedly.

The "proper" tab switch you're probably looking for is achieved when pressing Ctrl+PgUp/Ctrl+PgDown. That should switch between tabs in a circular manner.

As for the current version (7.3.1), there seems to be no way to change the key bindings (Tools|Options|Keymap) to Ctrl+Tab/Ctrl+Shift+Tab, because they are caught by that PopupSwitcher.

The only solution that comes to my mind is to either catch Ctrl+Tab, Ctrl+Shift+Tab a level before NetBeans (with something like AutoHotkey) and forward Ctrl+PgUp/Ctrl+PgDown. Or you could modify the sources and build NetBeans yourself. See NetBeans sources, module core.windows, package org.netbeans.core.windows.view.ui.popupswitcher.

Upvotes: 17

Related Questions