WordPress.org

Make WordPress Core

Changeset 42807


Ignore:
Timestamp:
03/08/2018 08:57:44 PM (4 years ago)
Author:
afercia
Message:

Accessibility: Insert Link modal: Improve keyboard interaction.

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

Fixes #43253.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wplink.js

    r41393 r42807  
    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.