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 104789 - DnD is not cancelled if user hits escape key when drag cursor is over the outline explorer
Summary: DnD is not cancelled if user hits escape key when drag cursor is over the out...
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Peter Zavadsky
Depends on:
Reported: 2007-05-25 01:01 UTC by bugbridge
Modified: 2009-05-25 21:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-05-25 01:01:17 UTC
Original status: 5-Cause Known; Suggested Status: NEW

Original Target Release: shortfin_dev; Suggested Target Milestone : 5.5

These items should be added to the Keywords: REGRESSION
These items should be added to the Status Whiteboard: WAV_APPROVED

Original submitter: sjangity

Build 926, 918 NB, WinXP
JDK 1.5.06/EE5

- Drag a button from the palette over to the outline window in an attempt to add
it under the form node
- hit the escape key
- mouse over designer
> drop cursor is still there

This is not a bug.
The esc over outline cancelled the ongoing DnD operation. When you moved to
designer (while still selected palette and its item), it starts another CnC


Please close as "not a defect".

Evaluation (Entry 2):
Yes, but there are differences to the leopard, as described in the doc I pointed
the link.
And in this case you are not going from one DnD to CnC, you simply cancelled DnD
operation, and started new CnC operation. There were no two parallel DnD and
CnC. Please read the eval and the link above.

Evaluation (Entry 3):
I agree that ESC key should cancel the D&D operation and drop cursor shouldn't
be visible in the Editor then.

I was testing the scenario on build 2006/10/30 on my computer (Windows 2000 and
Java 1.5.0_07) and it worked like that. So it's maybe fixed already.

Evaluation (Entry 4):
Yes, the CnC was fixed before. So this should work now, and now I tired and it did.

Evaluation (Entry 5):
The problem is that during DnD the Esc event is not delivered to the handler in
designer top comp. I am not sure whether it is an issue of java DnD at the
moment, or if the event has to be consumed.
Anyway, it seems to be a problem to fix it now. Investigating.
Comment 1 Peter Zavadsky 2007-05-28 08:49:10 UTC
There were some fixes in this area, checking this case.
Comment 2 Peter Zavadsky 2007-05-28 08:53:37 UTC
It is still there, the problem is how to cancel CnC after the DnD is cancelled.
The target doesn't get any event about that.
Maybe, it should be OK to cancel CnC when there is DnD in progress(? - which
means deselect the palette -> looks strange).
Comment 3 Peter Zavadsky 2007-05-28 08:54:16 UTC
CC'ing UI, how should this CnC (click and click work)?