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 156965 - Ctrl+PAGE_UP and Ctrl+PAGE_DOWN mappings don't work with Nimbus laf.
Summary: Ctrl+PAGE_UP and Ctrl+PAGE_DOWN mappings don't work with Nimbus laf.
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords: L&F
Depends on:
Blocks:
 
Reported: 2009-01-16 17:29 UTC by mmclark
Modified: 2010-10-01 15:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mmclark 2009-01-16 17:29:24 UTC
When using the Nimbus look and feel, mapping Ctrl+PAGE_UP and Ctrl+PAGE_DOWN to specific actions in the Options Keymap
dialog don't trigger those actions when using the editor.  I mapped the two key combinations to "Previous Tab" and "Next
Tab" respectively.  The mapping appeared to work, but when working with the editor, the new mappings didn't work.

I did discover that Ctrl+PAGE_UP and Ctrl+PAGE_DOWN do function as horizontal scroll left and horizontal scroll right,
respectively.  This obviously only occurs when the horizontal scroll bar is active.

When I changed from Nimbus to the default look and feel, the problem went away and the key mappings worked as expected.

Test Platform:

Ubuntu Linux 8.10 amd64
Java 6u12 b03 (amd64) and Java 6 u11 (amd64)
Comment 1 Vitezslav Stejskal 2009-01-19 11:55:21 UTC
Not sure what's wrong.
Comment 2 Petr Dvorak 2009-01-20 12:51:12 UTC
If you want some hint from someone who doesn't know what he's taking about:

You might look for some inspiration at the "start page" (saubrecht). It handles these shortcuts properly - if you press
Ctrl+PG_UP/DOWN while being on the start page, it works, but for other editor tab it doesn't. (With Nimbus l&f, of course).
Comment 3 tabbott 2009-01-27 14:47:50 UTC
I can confirm this same behaviour running on Windows, so the problem is not Linux specific. This is on Windows XP
Professional SP3 running Netbeans 6.5 on JDK 6u11. All the latest Netbeans updates are applied.

The key bindings work as expected with the default L&F but when using Nimbus L&F then CTRL+PGUP & CTRL+PGDN only work
when the start page tab is focused. When an editor tab has focus they trigger horizontal scrolling as described. I have
not come across any other problematic key bindings.
Comment 4 yuriy_lalym 2009-11-03 21:42:41 UTC
Java 6u16 (amd64)
netbeans-trunk-nightly-200911030222-ml-cpp-linux.sh - The question and is not solved
Comment 5 David Strupl 2010-10-01 15:48:22 UTC
Looks like Nimbus binds those key strokes to something. I am marking the issue as wontfix.