Closed Bug 57967 Opened 24 years ago Closed 23 years ago

delete previous word [Ctrl-Backspace], start of buffer/line [Ctrl-Home], end of buffer/line [Ctrl-End] functionality

Categories

(Core :: DOM: Editor, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla0.9.2

People

(Reporter: david, Assigned: Brade)

References

Details

(Whiteboard: cannot verify on Windows until 50255 is fixed.)

Attachments

(2 files)

On Windows and in the Motif widgets that Netscape uses, Ctrl-home, Ctrl-end, and
Ctrl-backspace have the following meanings inside edit boxes:

Ctrl-home: Move cursor (and scroll) to the beginning of the buffer/line
Ctrl-end: Move cursor (and scroll) to the end of the buffer/line
Ctrl-backspace: Delete the word to the left of the cursor

These keystrokes do not appear to be bound to anything in the new XUL text
widgets.  They should behave similar to the old Windows and Motif widgets.
->editor.  Note that we don't use Motif widgets in Netscape6.
Assignee: trudelle → beppe
Status: UNCONFIRMED → NEW
Component: XP Toolkit/Widgets → Editor
Ever confirmed: true
QA Contact: jrgm → sujay
reassign to anthonyd and moving to mozilla0.9
Assignee: beppe → anthonyd
Target Milestone: --- → mozilla0.9
Status: NEW → ASSIGNED
ctrl-home and ctrl-end are covered by bug 56071.
setting to p2
anthonyd
Priority: P3 → P2
*** Bug 57832 has been marked as a duplicate of this bug. ***
p3/correctness, leaving in moz0.9 but not nsbeta1
Keywords: correctness
Priority: P2 → P3
i tihnk this is a keybinding issue, if so, its a 5 minute fix.  If not...well

anthonyd
updating summary

This *might* be able to be done in JS.
Can someone explain how the functionality works?  What if you are in the middle 
of a word?  What if you are between spaces?  Is there a corresponding keybinding 
for deleting the word to the right of the caret?
Summary: Ctrl-home, Ctrl-end, Ctrl-backspace functionality → delete previous word [Ctrl-backspace] functionality
Depends on: 73867
bug is fixed, but i am blocked by 73867

here are the keybindings, these are the windows ones.  the only chagnes for the 
other platforms are the modifier keys.

<handler event="keypress" keycode="VK_BACK" modifiers="control" 
command="cmd_deleteWordBackward"/>
<handler event="keypress" keycode="VK_HOME" modifiers="control" 
command="cmd_moveTop"/>
<handler event="keypress" keycode="VK_END" modifiers="control" 
command="cmd_moveBottom"/>

Whiteboard: BLOCKED, FIX IN HAND
Target Milestone: mozilla0.9 → mozilla0.9.1
i think this was accidentally set to 0.9.1
Target Milestone: mozilla0.9.1 → mozilla0.9
moving to 0.9.1 because thats when 73867 will get looked at.

anthonyd
Target Milestone: mozilla0.9 → mozilla0.9.1
Depends on: 50255
No longer depends on: 73867
moving to 0.9.2 becaue it doesnt look like rods will have time for 50255
Target Milestone: mozilla0.9.1 → mozilla0.9.2
moving to 1.0
Target Milestone: mozilla0.9.2 → mozilla1.0
assigning this to brade. when we last talked about this, i mentioned this bug, 
but i was damned if i could find it.  i know kathy was fixing up keybindings, 
and this may already be fixed and the included patch wont be needed.

anthonyd
Assignee: anthonyd → brade
Status: ASSIGNED → NEW
Whiteboard: BLOCKED, FIX IN HAND → [blocked][fix in hand][correctness]
moving into 9.3, needs testing
Target Milestone: mozilla1.0 → mozilla0.9.3
I just tried Ctrl-backspace and we do not delete the previous word.
I used 6/25 builds on windows.
Target Milestone: mozilla0.9.3 → mozilla1.0
talked with Kathy, she explained that this is used very often and is a basic 
step used by a lot of folks

reviewed and approved
Keywords: nsBranch
Target Milestone: mozilla1.0 → mozilla0.9.3
linux already has keybinding for delete previous word (control-w)
I will attach a patch for adding keybinding for Mac (alt-backspace) and Windows
(ctrl-backspace).

Note that this keybinding is being added to editors, inputs, and textareas. 
However, Linux does not use this keybinding in Composer (for obvious reasons).

Akkana--please review
Kin--please sr=
Status: NEW → ASSIGNED
Hardware: PC → All
Whiteboard: [blocked][fix in hand][correctness] → [fix in hand][correctness]
sr=kin@netscape.com on the 06/27/01 14:10 patch.
Linux will also have control-backspace to delete previous word.
Kin--please sr= this part as well.
Akkana--please r= both attachments
r=akkana for both attachments.
fix checked into both trunk and 0.9.2 branch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Target Milestone: mozilla0.9.3 → mozilla0.9.2
I don't see this fixed in 6/29 builds...what am I doing wrong:

1) launch netscape
2) launch composer
3) enter a line of text like this: "one two three"

the caret is at the end of "three"

4) hit Ctrl-Backspace

nothing happens. Its supposed to delete previous word right?

this is not fixed at all using 6/29 branch builds...Beth also confirmed this..

REOPENing.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
It does work for me on a linux trunk build pulled this morning.
I also tried on 6/29 windows trunk...still doesn't work for me.
Resolve this bug as fixed; Windows problem is #50255.  When that bug is fixed, 
this bug should work as expected on Windows.

If this problem is not fixed on the trunk or branch for Linux and Macintosh, 
please reopen.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
verified on Mac and Linux branch. works fine..

will re-verify on Windows after 50255 is fixed.
Whiteboard: [fix in hand][correctness] → cannot verify until 50255 is fixed.
updating status whiteboard.
Whiteboard: cannot verify until 50255 is fixed. → cannot verify on Windows until 50255 is fixed.
*** Bug 158647 has been marked as a duplicate of this bug. ***
Updating summary for the sake of easier search.
Summary: delete previous word [Ctrl-backspace] functionality → delete previous word [Ctrl-Backspace], start of buffer/line [Ctrl-Home], end of buffer/line [Ctrl-End] functionality
QA Contact: sujay → sairuh
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: