If we perform cut or copy in the browser text box and perform a paste else where. Can we detect whether the source is from cut or copy from the paste event in browsers ?
document.querySelector('.box').addEventListener('paste', function(event) {
// How can we identify wheter cut or copy is performed on text from the paste event
})
.box {
background: red;
height: 200px;
width: 200px;
}
<textarea> </textarea>
<div class='box' tabIndex=0> </div>