How do I catch paste event from the right click menu? #5072
Replies: 1 comment 1 reply
-
To help any future searchers: To detect a right-click paste the method I used is: from onData event look at data length. if the length is > 1 and the first char isn't 0x1B (i.e. it isn't a control code) then assume a paste is happening. it's a bit hacky and i bet this doesn't cover all cases, but it's mostly effective for me |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
no stdin...
Beta Was this translation helpful? Give feedback.
All reactions