+ 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

6th May 2020, 6:27 PM
Joe
Joe - avatar
2 Antworten
+ 1
Random comments can assist trace the solution
6th May 2020, 6:28 PM
Joe
Joe - avatar
+ 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
6th May 2020, 7:30 PM
Ipang