Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichText: fix wordwise selection on Windows #14184

Merged
merged 3 commits into from
Mar 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
RichText: fix wordwise selection on Windows
  • Loading branch information
ellatrix committed Mar 1, 2019
commit 71cff0111ee234ea372297e29a0b06c27fbd0479
4 changes: 2 additions & 2 deletions packages/editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,10 @@ export class RichText extends Component {
* @param {KeyboardEvent} event The keydown event.
*/
onKeyDown( event ) {
const { keyCode, shiftKey, altKey, metaKey } = event;
const { keyCode, shiftKey, altKey, metaKey, crtlKey } = event;

if (
! shiftKey && ! altKey && ! metaKey &&
! shiftKey && ! altKey && ! metaKey && ! crtlKey &&
( keyCode === LEFT || keyCode === RIGHT )
) {
this.handleHorizontalNavigation( event );
Expand Down