Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard events not working #930

Closed
ospfranco opened this issue Dec 18, 2021 · 1 comment
Closed

Keyboard events not working #930

ospfranco opened this issue Dec 18, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ospfranco
Copy link

Environment

react-native -v: 5.0.1
npm ls react-native-macos: [email protected]
node -v: 16.12.0
npm -v: 8.1.0
yarn --version: 1.22.17
xcodebuild -version: Xcode 13.1 Build version 13A1030d

Steps to reproduce the bug

Hi, I was browsing through the issues the other they and I found this PR which in theory added keyboard event support, I've been trying to get it to work to add keyboard shortcuts to my app, but no matter what I do, I get no events whatsoever:

// my root window View
<View
      style={tw('flex-row h-full')}
      focusable
      validKeysDown={['c']}
      onKeyDown={e => {
        console.warn('key down');
      }}>

Am I doing it wrong, or is this really not working?

Expected Behavior

No response

Actual Behavior

No response

Reproducible Demo

No response

Additional context

No response

@ospfranco ospfranco added the bug Something isn't working label Dec 18, 2021
@ghost ghost added the Needs: Triage 🔍 label Dec 18, 2021
@HeyImChris
Copy link

Duplicate of #823

@HeyImChris HeyImChris marked this as a duplicate of #823 Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants