guardian / scribe

DEPRECATED: A rich text editor framework for the web platform
http://guardian.github.io/scribe/
Apache License 2.0
3.51k stars 245 forks source link

Determine keydown event when execute is called #425

Closed ghost closed 9 years ago

ghost commented 9 years ago

I am creating a plugin and there is a certain case where execute is called by either enter or backspace in a list and I need to know which key it was.

Is there a known way to get this information (must work in FF and chrome)? Or will I need to modify scribe in order to accomplish this?

ghost commented 9 years ago

Here is my attempt at a fix. If there is a better suggestion let me know.

https://github.com/guardian/scribe/pull/428

rrees commented 9 years ago

Please test release v2.0.1 and close if fixed. Thanks for the PR.