Skip to content

bug: e.shift is false when press Shift+Enter in textarea #434

@fengzilong

Description

@fengzilong
Image

press Shift+D in textarea, e.shift=true

Image

But when pressing Shift+Enter, the current behavior is e.shift = false, the expected behavior is e.shift = true

Here is the code snippet to reproduce this

<textarea
  onKeyDown={e => {
    if (e.name === 'd') {
      console.log('d pressed', e)
    }
    if (e.name === 'return') {
      console.log('Enter pressed', e)
    }
  }}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions