Bug 25510

Summary: Shift-delete doesn't work right on Windows
Product: WebKit Reporter: Adam Barth <abarth>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: abarth, ap, eric, jparent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows Vista   

Description Adam Barth 2009-05-01 11:16:46 PDT
Shift-delete beeps on Windows instead of Doing the Right Thing (tm).

Steps to reproduce:
1) Type "123456" in a text area.
2) Place your cursor between the "3" and the "4".
3) Hold down shift and press the delete key.

Actual Behavior:
BEEP

Expected Behavior:
The 3 is deleted.

This behavior is somewhat inconsistent on Windows.  Notepad deletes the 3.  Firefox deletes the 4.  Internet Explorer does nothing.
Comment 1 Eric Seidel (no email) 2009-05-01 11:26:32 PDT
I'm not sure that our behavior is that bad if this is so inconsistent on Windows.  shift-delete works fine in mac webkit (it deletes the 3).
Comment 2 Alexey Proskuryakov 2009-05-02 02:41:04 PDT
Just to confirm - is the "delete key" discussed here the one above Enter, or forward delete?
Comment 3 Adam Barth 2009-05-02 12:27:47 PDT
(In reply to comment #2)
> Just to confirm - is the "delete key" discussed here the one above Enter, or
> forward delete?

On my ThinkPad keyboard, it's the one near Insert, Home, and End.  In particular, it's not the one labeled "Backspace."
Comment 4 Alexey Proskuryakov 2009-05-02 13:15:15 PDT
Oh, ok - on U.S. Apple keyboards it's the Backspace key that's labeled "delete" (and on international ones, it only has an arrow symbol and no words).

Is there a good reason for someone to use Shift+Delete when they mean Backspace, or is that just an edge case?
Comment 5 Adam Barth 2009-05-02 13:24:37 PDT
> Is there a good reason for someone to use Shift+Delete when they mean
> Backspace, or is that just an edge case?

I'm used to the Firefox behavior and was surprised when Safari didn't act like I was used to.  I use it for capitalizing already-typed words (hold shift and re-type the word while pressing delete).  It's just an edge case.  Eric said he's on an editing bug-fixing binge and asked me to file this bug.
Comment 6 Adam Barth 2009-06-13 20:28:04 PDT
From this discussion, it looks like our behavior is reasonable.