<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 18/01/2018 16:56, Nicholas Alexander wrote:<br>
    <blockquote type="cite"
cite="mid:CAMnWBR0JHYunWuzE=z0X9vhhB=8-AGaxuCuywBKd1Pj25vtTFw@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Wed, Jan 17, 2018 at 6:34 PM,
            Masayuki Nakano <span dir="ltr"><<a
                href="mailto:masayuki@d-toybox.com" target="_blank"
                moz-do-not-send="true">masayuki@d-toybox.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,
              everyone.<br>
              <br>
              Please stop using keypress event for handling
              non-printable keys in new code when you write new code and
              new automated tests. Firefox will stop dispatching
              keypress events for non-printable keys for conforming to
              UI Events and struggling with web compatibility.
              (non-printable key means key combination which won't cause
              inputting character, e.g., arrow keys, backspace key and
              Ctrl (and/or Alt) - "A" key, etc.)</blockquote>
            <br>
            <div>Could someone who is knowledgeable about ES lint
              comment on whether it is possible to leverage ES lint to
              draw a line in the sand, at least on the JavaScript side
              of the house?</div>
          </div>
        </div>
      </div>
    </blockquote>
    If I understand correctly, Masayuki is asking that we stop doing
    things like `<span style="color: rgb(0, 0, 0); font-family:
      -webkit-standard; font-size: medium; font-style: normal;
      font-variant-caps: normal; font-weight: normal; letter-spacing:
      normal; orphans: auto; text-align: start; text-indent: 0px;
      text-transform: none; white-space: normal; widows: auto;
      word-spacing: 0px; -webkit-text-size-adjust: auto;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255); display: inline !important; float: none;">document.addEventListener("keypress",
      detectKeyEvent);` when expecting a non-printable key. If so, that
      isn't going to be possible unless keypress is being banned
      completely.<br>
      <br>
      The problem is we'd need to do analysis of the listener function
      and what's happening inside it, and that would be too complicated
      for us to handle in ESLint.<br>
      <br>
      We can do things like ban the use of a particular function, or a
      function with specific parameters quite easily, but once we need
      to start looking into actual details, then it tends to be too
      difficult.<br>
      <br>
      Mark<br>
      <br>
      <br>
    </span>
  </body>
</html>