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 120678 - New shortcut collides with existing
Summary: New shortcut collides with existing
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Print (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 17:32 UTC by novakm
Modified: 2009-01-15 15:45 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 novakm 2007-10-31 17:32:20 UTC
CTRL+P is already assigned for "Show Method Parameters" action. So when you use it, no Print dialog is invoked. It's
questionable what shortcut to change, but I think that printing is not used as often as Show Method Parameters. And
because Print and Print Preview actions were "merged" lately, I assume removing CTRL+P will work just fine as
CTRL+SHIFT+ALT+P shortcut is still assigned to that action.



Product Version: NetBeans IDE Dev (Build 200710301200)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
Comment 1 Vladimir Yaroslavskiy 2007-11-01 09:48:27 UTC
I released Ctrl+P.
Print action has Ctrl+Shift+Alt+P shortcut.
Comment 2 novakm 2007-11-02 11:32:42 UTC
Verified in Build 200711020000
Comment 3 tomwheeler 2009-01-08 21:13:56 UTC
I filed issue #150133 to request that Ctrl+P be assigned to print because that is what users expect, but it was closed
WONTFIX referencing this issue because the Ctrl+P binding had been used for something else.  

I checked several programs and all support the standard Ctrl+P keyboard shortcut:

Eclipse IDE: Ctrl+P
IntelliJ IDEA: Ctrl+P
TextPad editor: Ctrl+P
Mozilla Thunderbird: Ctrl+P
Mozilla Firefox: Ctrl+P
Internet Explorer: Ctrl+P
Microsoft Word: Ctrl+P
Microsoft Excel: Ctrl+P
Microsoft PowerPoint: Ctrl+P
Microsoft Outlook: Ctrl+P
Microsoft Office Picture Manager: Ctrl+P
OpenOffice Writer: Ctrl+P
OpenOffice Calc: Ctrl+P
OpenOffice Impress: Ctrl+P
Windows Notepad: Ctrl+P
Windows Wordpad: Ctrl+P
Microsoft Paint: Ctrl+P
The GIMP: Ctrl+P
Inkscape: Ctrl+P
Adobe Acrobat: Ctrl+P

NetBeans is the only program I can think of in which the print shortcut is something different, especially something as
unnatural as Ctrl+Shift+Alt+P.  The "Show Method Parameters" action is far less common -- I've been using the IDE for
years and  never even knew it existed.  IMHO it is the one which should be bound to Ctrl+Shift+Alt+P rather than "Print."

So my question is, can this *please* be fixed for 7.0?  If so, shall I reopen this issue, reopen #150133 or shall I file
an entirely new issue.
Comment 4 Vladimir Yaroslavskiy 2009-01-11 11:17:19 UTC
I was asking NetBeans guru for help, we should wait for answer from responsible person for shortcuts.

As for me, I'm voting for Ctr+P for Print.
Comment 5 _ tboudreau 2009-01-15 15:45:08 UTC
IIRC, the history of CTRL-P is:  It used to be Print (Alt-P) was Show Method Parameters.  It was noticed that Print is
almost never used in IDE usage statistics.  There was also a problem that ALT-P inserts the character for PI on
Macintosh, and for a long time Show Method Parameters worked but also inserted a Π character in the editor :-/

However, in non-IDE applications where printing is more common, it certainly does make sense for CTRL-P to be bound to
Print.  Perhaps a shortcut could be defined by default, and then deleted by the IDE branding?