Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Right and Left Arrow Event Handling #1384

Closed
wants to merge 3 commits into from

Conversation

eessex
Copy link
Contributor

@eessex eessex commented Sep 12, 2017

Exposes right and left keyboard events, as suggested in this issue by @hellendag.

This will greatly simplify some of our arrow handling at Artsy.

The test suite is passing locally.

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@eessex
Copy link
Contributor Author

eessex commented Sep 18, 2017

This build was not able to complete, but the tests are passing locally. Is it possible to trigger a rebuild?

@flarnie flarnie self-requested a review September 22, 2017 19:21
@flarnie
Copy link
Contributor

flarnie commented Sep 22, 2017

Hi @eessex! Thanks for adding this.

I just triggered a rebuild, and in general you can also trigger a rebuild by rebasing your branch on master and force pushing your branch. Looks like tests were just failing spuriously, probably due to some issue with CI itself.

I think this looks good and makes sense. I'm trying to manually test it and when I manually added an onLeftArrow prop to the rich example, with a callback, the callback wasn't being called.

Going to debug this a little more and see if I can figure out what I'm missing.

@eessex
Copy link
Contributor Author

eessex commented Sep 22, 2017

Thanks @flarnie! I'll try some manual debugging on my side as well

@flarnie
Copy link
Contributor

flarnie commented Sep 23, 2017

Maybe I forgot to re-run yarn build or something - it works for me now. Thanks!

happy_golden_retriever

Adding this to the queue for merging.

@facebook-github-bot
Copy link

@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

2 similar comments
@facebook-github-bot
Copy link

@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

midas19910709 added a commit to midas19910709/draft-js that referenced this pull request Mar 30, 2022
Summary:
Exposes right and left keyboard events, as suggested in [this issue](facebookarchive/draft-js#219) by hellendag.

This will greatly simplify some of our arrow handling at [Artsy](https://github.com/artsy/positron/blob/master/client/apps/edit/components/content2/sections/text/index.coffee#L121).

The test suite is passing locally.
Closes facebookarchive/draft-js#1384

Differential Revision: D5954003

fbshipit-source-id: 90c3a7d6bb5070c455f56d60ccd64c5ad136fe59
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
Exposes right and left keyboard events, as suggested in [this issue](facebookarchive/draft-js#219) by hellendag.

This will greatly simplify some of our arrow handling at [Artsy](https://github.com/artsy/positron/blob/master/client/apps/edit/components/content2/sections/text/index.coffee#L121).

The test suite is passing locally.
Closes facebookarchive/draft-js#1384

Differential Revision: D5954003

fbshipit-source-id: 90c3a7d6bb5070c455f56d60ccd64c5ad136fe59
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
Summary:
Exposes right and left keyboard events, as suggested in [this issue](facebookarchive/draft-js#219) by hellendag.

This will greatly simplify some of our arrow handling at [Artsy](https://github.com/artsy/positron/blob/master/client/apps/edit/components/content2/sections/text/index.coffee#L121).

The test suite is passing locally.
Closes facebookarchive/draft-js#1384

Differential Revision: D5954003

fbshipit-source-id: 90c3a7d6bb5070c455f56d60ccd64c5ad136fe59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants