mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 03:29:46 +08:00
fix(contenteditable): revert 36b4f3, call onClick in mouse-service
This commit is contained in:
parent
9dfb03727d
commit
4bd46b055f
2 changed files with 1 additions and 5 deletions
|
@ -195,7 +195,6 @@ class Contenteditable extends React.Component
|
||||||
onBlur: @_onBlur
|
onBlur: @_onBlur
|
||||||
onFocus: @_onFocus
|
onFocus: @_onFocus
|
||||||
onKeyDown: @_onKeyDown
|
onKeyDown: @_onKeyDown
|
||||||
onClick: @_onClick
|
|
||||||
onCompositionEnd: @_onCompositionEnd
|
onCompositionEnd: @_onCompositionEnd
|
||||||
onCompositionStart: @_onCompositionStart
|
onCompositionStart: @_onCompositionStart
|
||||||
return handlers
|
return handlers
|
||||||
|
@ -276,9 +275,6 @@ class Contenteditable extends React.Component
|
||||||
_onKeyDown: (event) =>
|
_onKeyDown: (event) =>
|
||||||
@dispatchEventToExtensions("onKeyDown", event)
|
@dispatchEventToExtensions("onKeyDown", event)
|
||||||
|
|
||||||
_onClick: (event) =>
|
|
||||||
@dispatchEventToExtensions("onClick", event)
|
|
||||||
|
|
||||||
# We must set the `inCompositionEvent` flag in addition to tearing down
|
# We must set the `inCompositionEvent` flag in addition to tearing down
|
||||||
# the selecton listeners. While the composition event is in progress, we
|
# the selecton listeners. While the composition event is in progress, we
|
||||||
# want to ignore any input events we get.
|
# want to ignore any input events we get.
|
||||||
|
|
|
@ -66,7 +66,7 @@ class MouseService extends ContenteditableService
|
||||||
selection = document.getSelection()
|
selection = document.getSelection()
|
||||||
return event unless DOMUtils.selectionInScope(selection, editableNode)
|
return event unless DOMUtils.selectionInScope(selection, editableNode)
|
||||||
|
|
||||||
# @dispatchEventToExtensions("onClick", event)
|
@dispatchEventToExtensions("onClick", event)
|
||||||
return event
|
return event
|
||||||
|
|
||||||
_onDragStart: (event) =>
|
_onDragStart: (event) =>
|
||||||
|
|
Loading…
Reference in a new issue