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 145341 - A11Y: shortcut does not add attribute or operation if not in the context compartment
Summary: A11Y: shortcut does not add attribute or operation if not in the context comp...
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: A11Y
: 139535 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-27 18:49 UTC by Peter Lam
Modified: 2008-09-23 17:55 UTC (History)
1 user (show)

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 Peter Lam 2008-08-27 18:49:40 UTC
Alt-Shift-A and Alt-Shift-M are used to add attribute and operation respectively, if the class or interface element is
selected. However, if an attribute is selected (Attributes comparment is in focus), Alt-Shift-M to add operation does
not work. The same is for Alt-Shift-A if an operation is selected (Operations comparment is in focus).

Both shorcuts Alt-Shift-A and Alt-Shift-M should work regardless of which compartment is in focus.
Comment 1 Peter Lam 2008-09-08 23:24:06 UTC
workaround: reselect the element using Tab traversal.
Comment 2 Thuy.d Nguyen 2008-09-13 00:54:30 UTC
If an attribute is selected (i.e. the attribute compartment is in focus),  I think, logically, it makes sense not to
allow users creating an operation using ALT-Shift-M. It's a context-sensitive action. It's like when you select an
attribute, you see only "Create Attribute" menu item on its popup menu.   

The same argument for Operation, i.e. when an operation is selected, creating an attribute using the short cut should
not occur.

Let me know what think.
Comment 3 Thuy.d Nguyen 2008-09-15 22:07:33 UTC
As per the off line discussion with Trey and Peter, we all agree to fix this issue.

changeset 59e29d16b1b7 in uml-main
details: http://hg.netbeans.org/uml-main?cmd=changeset;node=59e29d16b1b7
Comment 4 Trey Spiva 2008-09-16 18:39:47 UTC
Reviewed
Comment 5 Peter Lam 2008-09-17 00:03:01 UTC
verified in build 20080916.
Comment 6 Sergey Petrov 2008-09-23 17:55:36 UTC
*** Issue 139535 has been marked as a duplicate of this issue. ***