Skip to content

Remove event.which property fill #3235

Closed

Description

@dmethvin

IE8 seems to be the last browser that didn't provide this natively. It's a bit tricky to test because it needs a real event and not a simulated one.

#3233 (comment)

See also gh-2337, if we're not filling the property and just passing it on I don't know that we need to formally deprecate it in jQuery or generate a Migrate warning. If browsers ever tried to deprecate it via a console warning, the pass-through we do when copying the property would be the responsibility of the caller. If anything I'd say we add a note in our docs to use event.button or event.buttons where possible.

Activity

  1. added this to the 3.2.0 milestone on Jul 15, 2016
  2. modified the milestones: 3.2.0, 3.3.0 on Mar 6, 2017
  3. modified the milestones: 3.3.0, 4.0.0 on Jun 19, 2017
  4. added a commit that references this issue on Jul 29, 2020
    a684919
  5. mgol commented on Jul 29, 2020

    @mgol
    Member

    PR: #4765

  6. mgol commented on Jul 29, 2020

    @mgol
    Member

    Why is this marked as a behavior change if all the browsers already support it?

  7. assigned and unassigned on Jul 29, 2020
  8. mgol commented on Jul 29, 2020

    @mgol
    Member

    @dmethvin Sorry, I didn't notice this issue & your assignment before I made the PR. I reassigned the issue to myself.

  9. dmethvin commented on Jul 31, 2020

    @dmethvin
    MemberAuthor

    @mgol No problem, thanks for doing it! Should just be a case of deleting the which entry in event.js, I wouldn't think it changes any tests.

  10. modified the milestones: 4.0.0, 3.6.0 on Aug 25, 2020
  11. added 2 commits that reference this issue on Aug 26, 2020
    1a5fff4
    2bf9793
  12. locked as resolved and limited conversation to collaborators on Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions