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. git-svn-id: https://develop.svn.wordpress.org/trunk@42807 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
19ed786c78
commit
475a58b384
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user