mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
Allow onContextMenu even handler (#1956)
Right clicks aren't handled by onClick in a content-editable component. So we need access to a onContextMenu handler to handle these events properly. My use case is to be able to open a context menu with actions when the user right-clicks a specific inline node.
This commit is contained in:
parent
eab4361d92
commit
3405e2f822
@ -8,6 +8,7 @@ const EVENT_HANDLERS = [
|
||||
'onBeforeInput',
|
||||
'onBlur',
|
||||
'onClick',
|
||||
'onContextMenu',
|
||||
'onCompositionEnd',
|
||||
'onCompositionStart',
|
||||
'onCopy',
|
||||
|
Loading…
x
Reference in New Issue
Block a user