facebookarchive/draft-js

onEscape is deprecated but keyBindingFn does not catch Escape key

Open

#1,839 建立於 2018年8月17日

在 GitHub 查看
 (3 留言) (0 反應) (1 負責人)JavaScript (22,554 star) (2,646 fork)batch import
documentationhelp wanted

描述

Do you want to request a feature or report a bug? Bug

What is the current behavior? keyBindingFn does not catch Escape key

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/stopachka/m6z0xn4r/. https://codesandbox.io/s/6jw8mzxl3n

What is the expected behavior? keyBindingFn should catch Escape key OR onEscape should not trigger a deprecation warning OR there should be an alternative way of catching Escape key

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? Draft.js 0.10.5

貢獻者指南

onEscape is deprecated but keyBindingFn does not catch Escape key · facebookarchive/draft-js#1839 | Good First Issue