+ 1
This is quite ridiculous but how can i disable the user from pasting into an input field.
for a case like security reasons and it is not a good practice to copy paste
2 Answers
+ 1
Random comments can assist trace the solution
+ 1
Intercepting and preventing "copy", "cut" and "paste" event works by means of context menu. I don't know whether it will work with key combination such as Ctrl-C, Ctrl-V, and Ctrl-X.
I have a clipboard extender app and it can paste saved string with no problem (bypass "paste" event checks). So I'm not all that sure about "security reason".
Look forward to others' opinions ...
https://code.sololearn.com/Wn6bVlVMEfWr/?ref=app