Skip to content

[#307] Allow right click in txtUsername and txtPassword

hazel requested to merge hazel_meow/isleward:patch-1 into v0.1.11

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.

Merge request reports