JDK-5074573 : Pressing Ctrl+Backspace and Ctrl+Delete do nothing in a JTextField
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2004-07-15
  • Updated: 2017-05-16
  • Resolved: 2006-03-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6 b76Fixed
###@###.### 2004-07-15

J2SE Version (please include all output from java -version flag):
  java version "1.5.0-beta3"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b57)
  Java HotSpot(TM) Client VM (build 1.5.0-beta3-b57, mixed mode)

Does this problem occur on J2SE 1.4 or 1.4.1 or 1.4.2?  Yes / No (pick one)
  Don't know

Operating System Configuration Information (be specific):
  Gentoo Linux kernel 2.6.7-mm6

Hardware Configuration Information (be specific):
  Thinkpad T30

Bug Description:
  In GTK (not GTK L&F in Java, it is real GTK), when the cursor 
  is in a text field, pressing Ctrl+Backspace will delete the "word" which 
  is before the cursor. Similarly, pressing Ctrl+Delete will delete the 
  word which is after the cursor.

  GTK L&F does not do this in its JTextFields. Pressing Ctrl+Backspace and 
  Ctrl+Delete do nothing in a JTextField.


Note: Same issue applies to Windows L&F.
###@###.### 2004-07-20

EVALUATION This action are not implemented in DefaultEditorKit. To fix this bug we need to implement the actions and bind them to Ctrl-Backspace and Ctrl-Delete in our look&feels

EVALUATION fixing it is a matter of adding couple of lines to GTKLookAndFeel unfortunately it seems that it is too late to add those line for tiger. Shannon am I correct? ###@###.### 2004-07-19 Name: sh120115 Date: 07/20/2004 This is not specific to the GTK Look and Feel. Native Windows text components have this behavior too. We support CTRL-left/right navigation in all text components so why not CTRL-backspace/delete? This is too late for tiger. ###@###.### 2004-07-20 ======================================================================