You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The KeyboardEvent.code returns the String AltRight when the Alt Right modifier key is pressed. When developers write extensions that need to check for the return value of this specific key's event, they'll see a warning that their code violates Mozilla's policy. I am guessing this may be due to the conflict with the Bad Word altright in badwords.json.
In #1656, the Bad Word alt-right was originally in the list, but was removed/replaced due to a conflict with a 3rd party JS library called Ace.js that apparently uses alt-right in its code. However, the correct spelling of the term according to Wikipedia is indeed Alt-right. Also, IMO, the standardized JS KeyboardEvent.code should supersede the 3rd party library Ace.js on priority on this.
I suggest replacing the Bad Word altright with alt right (space), or revert back to the correct spelling alt-right (hyphen), or perhaps maybe even renaming it alternative right. What do you all think?
The text was updated successfully, but these errors were encountered:
Describe the problem and steps to reproduce it:
The KeyboardEvent.code returns the String
AltRight
when the Alt Right modifier key is pressed. When developers write extensions that need to check for the return value of this specific key's event, they'll see a warning that their code violates Mozilla's policy. I am guessing this may be due to the conflict with the Bad Wordaltright
in badwords.json.In #1656, the Bad Word
alt-right
was originally in the list, but was removed/replaced due to a conflict with a 3rd party JS library calledAce.js
that apparently usesalt-right
in its code. However, the correct spelling of the term according to Wikipedia is indeedAlt-right
. Also, IMO, the standardized JSKeyboardEvent.code
should supersede the 3rd party libraryAce.js
on priority on this.I suggest replacing the Bad Word
altright
withalt right
(space), or revert back to the correct spellingalt-right
(hyphen), or perhaps maybe even renaming italternative right
. What do you all think?The text was updated successfully, but these errors were encountered: