Last modified: 2014-05-30 18:14:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35080, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33080 - VisualEditor: Shift-Delete keyboard "cut" shortcut doesn't work
VisualEditor: Shift-Delete keyboard "cut" shortcut doesn't work
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks: ve-keyboardshortcuts
  Show dependency treegraph
 
Reported: 2011-12-14 05:23 UTC by Max Semenik
Modified: 2014-05-30 18:14 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Max Semenik 2011-12-14 05:23:27 UTC
Expected: it should cut the text.
Current behaviour: current selection is simply deleted.
Opera 11.60.
Comment 1 Mark A. Hershberger 2011-12-21 23:27:45 UTC
Why is this the expected behavior?  It seems like someone could reasonably expect simple deletion.
Comment 2 Max Semenik 2011-12-22 05:21:22 UTC
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.
Comment 3 Mark A. Hershberger 2011-12-22 22:09:06 UTC
Ah, ff on linux, too.  I just hadn't tried it before.
Comment 4 James Forrester 2012-06-22 17:53:15 UTC
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.
Comment 5 Max Semenik 2012-06-22 18:20:33 UTC
(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.
Comment 6 James Forrester 2012-06-22 18:23:20 UTC
Thanks. Assigning.
Comment 7 Christian Williams 2012-06-22 21:00:18 UTC
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.
Comment 8 Max Semenik 2012-06-22 21:08:03 UTC
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.
Comment 9 Christian Williams 2012-06-22 21:15:56 UTC
Added "Shift-Delete" back into the title. Please leave it there as it's the only mention of the particular keyboard shortcut. Thanks! :)
Comment 10 James Forrester 2012-06-22 22:05:28 UTC
Mass-moving items into VisualEditor product
Comment 11 James Forrester 2012-06-23 01:36:17 UTC
Mass-move out of "General" to "ContentEditable".
Comment 12 James Forrester 2012-07-02 19:26:35 UTC
Standardise title.
Comment 13 Krinkle 2012-10-01 22:41:23 UTC
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).
Comment 14 John Broughton 2013-07-14 00:56:38 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links