WordPress.org

Make WordPress Core

Changeset 44405


Ignore:
Timestamp:
01/06/2019 07:42:36 PM (7 months ago)
Author:
desrosj
Message:

Accessibility: Insert Link modal: Improve keyboard interaction.

Avoids change the selected link when using the Shift + Up/Down arrow keys
to select text in the form fields.

Props afercia.

Merges [42807] to the 5.0 branch.
Fixes #43253.

Location:
branches/5.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0

  • branches/5.0/src/wp-includes/js/wplink.js

    r41393 r44405  
    560560
    561561            // Up Arrow and Down Arrow keys.
    562             if ( 38 !== event.keyCode && 40 !== event.keyCode ) {
     562            if ( event.shiftKey || ( 38 !== event.keyCode && 40 !== event.keyCode ) ) {
    563563                return;
    564564            }
Note: See TracChangeset for help on using the changeset viewer.