Page MenuHomePhabricator

VisualEditor: {Ctrl|Option}+{Delete,Backspace} should delete a word right, left of the caret
Closed, ResolvedPublic

Description

Ctrl+{Delete,Backspace} should delete a word right, left of the caret; Option+{Delete,Backspace} on Mac.

Currently deletes a character right, left of the caret.


Version: unspecified
Severity: minor

Details

Reference
bz38461

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:46 AM
bzimport set Reference to bz38461.

Assigning to Christian as he's requested for all key-binding tickets.

As with bug 38000, this feature must be left to the browser as much as possible. Some browsers delete the space after the word, some don't; some delete the punctuation after the word, some don't; in some languages the meaning of "word" is very surprising to people who speak English; in RTL languages "right" is the previous word and not the next; etc. We should just leave the behavior to which the users are accustomed in their favorite browsers.

See https://www.mediawiki.org/wiki/VisualEditor/Internationalization_requirements .

orbit wrote:

This has been fixed. We're no longer programmatically handling delete and backspace keypresses. Now, we let the browser do its thing and we observe what's changed and compose an accurate transaction to the data model. The exception is at node boundaries (pressing backspace at the beginning of a paragraph, for example) which are still handled programmatically.

The(In reply to comment #4)

It doesn't work in RTL.

Bug 48912 is this bug for RTL; this has been closed for a year as done.