United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5074573 : Pressing Ctrl+Backspace and Ctrl+Delete do nothing in a JTextField

Details
Type:
Bug
Submit Date:
2004-07-15
Status:
Resolved
Updated Date:
2006-03-16
Project Name:
JDK
Resolved Date:
2006-03-16
Component:
client-libs
OS:
linux
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports

Sub Tasks

Description
###@###.### 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

                                    

Comments
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

======================================================================
                                     
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
                                     
2006-02-28



Hardware and Software, Engineered to Work Together