You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inlcuding the draft-js-markdown-shortcuts-plugin is blocking key binding for the tab key.
Example:
constkeyDown=(e)=>{if(e.key==='Tab'){console.log('I never get here...');}console.log('Other keys are working fine.');}<EditoreditorState={editorState}onChange={setEditorState}keyBindingFn={keyDown}plugins={plugins}/>
If I remove the plugin, everything works as exepected and I'm able to catch tab key presses. I've tried adding onTabmethod to the Editor and works fine, but I get a warning since the method is deprecated.
It's possible to catch tab presses using KeyBindingFn?
The text was updated successfully, but these errors were encountered:
Inlcuding the
draft-js-markdown-shortcuts-plugin
is blocking key binding for the tab key.Example:
If I remove the plugin, everything works as exepected and I'm able to catch tab key presses. I've tried adding
onTab
method to the Editor and works fine, but I get a warning since the method is deprecated.It's possible to catch tab presses using
KeyBindingFn
?The text was updated successfully, but these errors were encountered: