Hi, thanks for this awesome editor!
I have a event handler to transform the content on paste before inserting it. But don’t want to transform the content if the user has the shift key pressed (i.e. ctrl/cmd + shift + v).
The `paste` event is a wrapped event without access to the original event properties (like `shiftKey`, so is there any way to detect this?
In short, I’d like to do something like this:
EditorView.domEventHandlers({
paste(event, view) {
const text = event.clipboardData.getData
const textToInsert = view.shiftKey ? text : transform(text)
// insert text here
}
})