[#307] Allow right click in txtUsername and txtPassword
Closes #307 (closed).
This PR adds an array of classes that can be right-clicked (currently just txtUsername
and txtPassword
).
If the element that is being right-clicked (e.target
in document
's contextmenu
event) has at least one of the classes, then the right-click is not allowed. If the element does not have any of the classes, preventDefault
is called and then return false
.