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 47024 - Strange shortcut for deleting node: "Backspace"
Summary: Strange shortcut for deleting node: "Backspace"
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: REGRESSION, UI
: 47037 47707 47981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-09 17:01 UTC by dmladek
Modified: 2008-12-22 21:40 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Popup menu with action "Delete" and assignet shortcut to the key "Backspace" (2.91 KB, image/png)
2004-08-09 17:03 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2004-08-09 17:01:55 UTC
Product Version       = NetBeans IDE Dev (Build
200408081800)
  Operating System      = Linux version
2.4.22-1.2115.nptl running on i386
  Java; VM; Vendor      = 1.5.0-beta3; Java
HotSpot(TM) Client VM 1.5.0-beta3-b62; Sun
Microsystems Inc.
  Java Home             = /usr/local/java/jdk1.5.0/jre
  System Locale; Encod. = cs_CZ (nb); ISO-8859-2
  Home Dir; Current Dir = /usr/local/home/delphym;
/usr/local/forte/forte3/NBdev-last/netbeans/bin
  IDE Install; User Dir =
/usr/local/home/delphym/NBdev-last/platform4;
/usr/local/home/delphym/.netbeans/dev
-------------------------------------------------------------------------------

I've found in current DEV (4.0) build thet when I
want to delete a node (eg. java file) the shortcut
assigned to the action "Delete"
is for "Backspace" key... that's sound strange to me. 

Is it as designed or is it bug?
FYI:
bouth key: "Delete" and "Backspace" delete the node.

As an evidence I'm attaching snapshot of the
popup-menu
Comment 1 dmladek 2004-08-09 17:03:07 UTC
Created attachment 16706 [details]
Popup menu with action "Delete" and assignet shortcut to the key "Backspace"
Comment 2 Marian Mirilovic 2004-08-10 06:20:08 UTC
*** Issue 47037 has been marked as a duplicate of this issue. ***
Comment 3 _ tboudreau 2004-08-10 08:13:44 UTC
Same problem as Find instead of ctrl-F.  Will be fixed when we get the mac key stuff 
merged.
Comment 4 Jesse Glick 2004-08-10 17:39:28 UTC
Intended as a Mac-specific binding but causes minor problems for other
platforms.
Comment 5 Tomas Pavek 2004-08-13 13:59:53 UTC
Also note that pressing Backspace always tries to delete the node -
even if its name is just being edited (after two clicks or F2 on it).
In this case bkspc and delete should be just normal editing keys, not
shortcuts for other actions.
Comment 6 Jesse Glick 2004-08-13 19:32:47 UTC
Interesting point. Maybe hard to solve, since our entire model of KB
shortcut handling is entirely wrong - we override the global KB
handler, rather than putting bindings onto components where they
belong. (For example, try press Ctrl-3 Ctrl-F4 etc. while a modal
dialog is open - opens and closes windows in the background, focus
remains in the dialog! Lovely.)
Comment 7 Jesse Glick 2004-08-13 19:34:01 UTC
...though I cannot reproduce Tomas's problem on Linux in 040812
custom. Backspace and Delete both offer to delete the node normally,
but work as expected when it is being edited.
Comment 8 Milan Kubec 2004-08-18 09:59:57 UTC
IMO this is supposed to be P2 because it's regression. Moreover it's
VERY strange UI to show Backspace as shortcut for Delete.
Comment 9 _ tboudreau 2004-08-18 11:08:16 UTC
This will be fixed as soon as issue 46811 is merged.
Comment 10 _ tboudreau 2004-08-19 14:58:50 UTC
Fixed, along with issue 32733.  When multiple keystrokes are 
registered for the same action, the one with the shorter text will be 
used.

C:\space\nb_all\core>cvs commit src\org\netbeans\core\NbKeymap.java
Checking in src/org/netbeans/core/NbKeymap.java;
/cvs/core/src/org/netbeans/core/NbKeymap.java,v  <--  NbKeymap.java
new revision: 1.24; previous revision: 1.23
done
Comment 11 _ tboudreau 2004-08-19 14:59:13 UTC
x
Comment 12 Marian Mirilovic 2004-08-21 09:51:59 UTC
*** Issue 47566 has been marked as a duplicate of this issue. ***
Comment 13 Petr Nejedly 2004-08-23 14:32:26 UTC
*** Issue 47707 has been marked as a duplicate of this issue. ***
Comment 14 Marian Mirilovic 2004-08-26 10:22:09 UTC
*** Issue 47981 has been marked as a duplicate of this issue. ***
Comment 15 Marian Mirilovic 2004-08-26 10:22:53 UTC
verified in [nb_dev](200408251800)