Page MenuHomePhabricator

Add support for indenting/outdenting shortcuts to discussion tools
Closed, ResolvedPublic

Description

This task is about adding support for indenting/outdenting keyboard shortcuts within the Reply and New Discussion Tool

Behavior

Reply Tool

  1. Open the Reply Tool's visual mode
  2. Create a bullet list, with three items in it:
: * Item 1 
: * Item 2
: * Item 3
  1. Place your cursor on the line that contains Item 2
  2. Press + ]
  3. Notice the list you created in "Step 2." now shows:
: * Item 1 
: ** Item 2
: * Item 3
  1. Place your cursor on the line that contains Item 2
  2. Press + [
  3. Notice the list you created in "Step 2." now shows:
: * Item 1 
: * Item 2
: * Item 3

New Discussion Tool

  1. Open the New Discussion Tool's visual mode
  2. Create a bullet list, with three items in it:
* Item 1 
* Item 2
* Item 3
  1. Place your cursor on the line that contains Item 2
  2. Press + ]
  3. Notice the list you created in "Step 2." now shows:
* Item 1 
** Item 2
* Item 3
  1. Place your cursor on the line that contains Item 2
  2. Press + [
  3. Notice the list you created in "Step 2." now shows:
* Item 1 
* Item 2
* Item 3

Done

  • ===Behavior is implemented

Event Timeline

Esanders subscribed.

In T368554 we created a native API for enabling tabbing out of VE surfaces. This allowed us to remove the previous hack we which removed the indent/outdent comments to free up the tab/shift+tab keyboard shortcuts[1]. As a result users can now indent/outdent list using the alternative ctrl+[/] shortcuts:

image.png (321×195 px, 5 KB)

[1] https://gerrit.wikimedia.org/r/c/mediawiki/extensions/DiscussionTools/+/1105381

Esanders claimed this task.