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.

Built from https://develop.svn.wordpress.org/trunk@42807


git-svn-id: http://core.svn.wordpress.org/trunk@42637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2018-03-08 20:58:30 +00:00
parent 996efe8f6e
commit 48077799d9
3 changed files with 3 additions and 3 deletions

View File

@ -559,7 +559,7 @@ var wpLink;
}
// Up Arrow and Down Arrow keys.
if ( 38 !== event.keyCode && 40 !== event.keyCode ) {
if ( event.shiftKey || ( 38 !== event.keyCode && 40 !== event.keyCode ) ) {
return;
}

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.0-alpha-42801';
$wp_version = '5.0-alpha-42807';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.