VisualEditor: Shift-Delete keyboard "cut" shortcut doesn't work
OpenPublic

Description

Expected: it should cut the text.
Current behaviour: current selection is simply deleted.
Opera 11.60.


Version: unspecified
Severity: enhancement

bzimport set Reference to bz33080.
MaxSem created this task.Via LegacyDec 14 2011, 5:23 AM
MarkAHershberger added a comment.Via ConduitDec 21 2011, 11:27 PM

Why is this the expected behavior? It seems like someone could reasonably expect simple deletion.

MaxSem added a comment.Via ConduitDec 22 2011, 5:21 AM

All the browsers on Windows I've seen treat this combination as "Cut" for input fields. Would be strange if it worked the other way in visual editor.

MarkAHershberger added a comment.Via ConduitDec 22 2011, 10:09 PM

Ah, ff on linux, too. I just hadn't tried it before.

Jdforrester-WMF added a comment.Via ConduitJun 22 2012, 5:53 PM

To confirm, should this "cut the text and enter into the clipboard" or just delete it? If the latter, FIXED. If the former, will need to assign.

MaxSem added a comment.Via ConduitJun 22 2012, 6:20 PM

(In reply to comment #4)

To confirm, should this "cut the text and enter into the clipboard" or just
delete it? If the latter, FIXED. If the former, will need to assign.

Cut, not delete.

Jdforrester-WMF added a comment.Via ConduitJun 22 2012, 6:23 PM

Thanks. Assigning.

bzimport added a comment.Via ConduitJun 22 2012, 9:00 PM

orbit wrote:

Unfortunately, due to the way that we're handling copy and paste, we're not going to be able to support this key combination at this time. Because we don't want the browser to make decisions about removing content from the article (our data model makes those decisions), we need to prevent native delete events. The problem with Shift-Delete is that the browser first fires a delete event (which we block), followed by a cut event, which we rely on the browser to handle natively.

MaxSem added a comment.Via ConduitJun 22 2012, 9:08 PM

The key here is "at this time": while currently it's not planned, it's natural for people to want all the keyboard shortcuts they're used to to work. Thus I'm reopening this bug in a bit generalised form.

bzimport added a comment.Via ConduitJun 22 2012, 9:15 PM

orbit wrote:

Added "Shift-Delete" back into the title. Please leave it there as it's the only mention of the particular keyboard shortcut. Thanks! :)

Jdforrester-WMF added a comment.Via ConduitJun 22 2012, 10:05 PM

Mass-moving items into VisualEditor product

Jdforrester-WMF added a comment.Via ConduitJun 23 2012, 1:36 AM

Mass-move out of "General" to "ContentEditable".

Jdforrester-WMF added a comment.Via ConduitJul 2 2012, 7:26 PM

Standardise title.

Krinkle added a comment.Via ConduitOct 1 2012, 10:41 PM

Also note that this appears to be platform specific. In that we shouldn't emulate it either because in Mac for instance there is no such thing as shift-delete. It is the same as regular delete (the shift doesn't do anything, and depending on the application it might even prevent the regular deletion because it doesn't recognise the keyboard combination).

John_Broughton added a comment.Via ConduitJul 14 2013, 12:56 AM

As pointed out, shift-delete on the Mac does NOT behave the same as in Windows - shift-delete is identical to delete. (Test: Microsoft Word on the Mac.) Also, shift-delete in some contexts is a super-delete (see support.microsoft.com/kb/239754 )

Given that shift-delete is OS-specific, not universal, and that Ctrl-X (Cmd-X on Macs) is the normal way to cut text (to the clipboard), and works perfectly fine in VE, I recommend closing this bug rather than trying to implement the suggested behavior.

Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.Via WebNov 24 2014, 1:23 AM
Aklapper added a subscriber: Aklapper.Via WebFeb 12 2015, 1:02 AM

As pointed out, shift-delete on the Mac does NOT behave the same as in Windows - shift-delete is identical to delete

That's covered in T57799: VisualEditor: Support the Command+Delete keyboard command on Mac (delete current line) and others (cross-referencing).

Jdforrester-WMF lowered the priority of this task from "Normal" to "Lowest".Via WebFeb 12 2015, 1:04 AM
John_Broughton removed a subscriber: John_Broughton.Via WebFeb 12 2015, 2:52 AM

Add Comment