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 138556 - Warning is not displayed when overriding default editor shortcut, change cannot be taken back
Summary: Warning is not displayed when overriding default editor shortcut, change cann...
Status: VERIFIED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Options (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-28 21:59 UTC by Petr Dvorak
Modified: 2008-10-21 16: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 Petr Dvorak 2008-06-28 21:59:27 UTC
Product Version: NetBeans IDE Dev (Build 200806281203)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)

If you try to change the shortcut for "Comment" operation in the Tools > Options > Keymaps to "Ctrl+C" (default shortcut
for copy), you get no warning in the dialog. Furthermore, there is no way how to take this change back - if you remove
the shortcut from the "Comment" operation, "Ctrl+C" does not work for the Copy anymore, you need to clean the userdir to
get the default settings (or maybe just dig in the userdir...)...

(Found by reading http://www.nabble.com/Strange-behaviour-on-keyboard-config-to18174247.html)
Comment 1 Vitezslav Stejskal 2008-07-14 12:06:57 UTC
I think this is a side effect of issue #133618, which complaints about missing keybindings for copy/paste operations and
others.
Comment 2 Jan Becicka 2008-07-14 12:23:56 UTC
And we need to fix it together with 123467.

*** This issue has been marked as a duplicate of 133618 ***
Comment 3 Petr Dvorak 2008-07-31 18:28:56 UTC
I will reopen the issue just because there is still part of the thing mentioned in the summary. If you try to override
default Copy shortcut (Ctrl+C), you get no warning in the Keymaps dialog.

Now there is the nice part:

1. Try to assign a Ctrl+C shortcut to "Comment" action.
-> Ctrl+C works for comment, not for copy

2. Unassign the Ctrl+C from "Comment" action and assign it to "Help>About"
-> Ctrl+C works for copy, it does not bring up the About dialog

(I would personally forbid to override Ctrl+C and similar shortcuts)
Comment 4 Petr Dvorak 2008-07-31 18:38:49 UTC
Did you manage to unassign the shortcut "Ctrl+Shift+T" from "Comment" action once you assinged it Ctrl+C shortcut? If
yes, could you then try to add some other shortcut to Comment action (Ctrl+Alt+M, it does not matter now...)?

After I once assigned Ctrl+C to the Comment action, I haven't seen other state than one of those two:

1. either no shortcut is assigned to Comment, or 
2. at least two shortcuts are assigned to Comment action, Ctrl+Shift+T is always one of them...
Comment 5 Jiri Prox 2008-07-31 19:32:05 UTC
which build do you use? it works fine for me in Product Version: NetBeans IDE Dev (Build 20080731042603)

Comment 6 Vitezslav Stejskal 2008-08-01 11:05:24 UTC
It also seems to be working fine in my dev build.
Comment 7 Petr Dvorak 2008-10-21 16:48:20 UTC
Not reproducible in latest dev build -> closing as WORKSFORME.
Comment 8 Petr Dvorak 2008-10-21 16:48:35 UTC
V.