kevinejohn / react-native-keyevent

Capture external keyboard keys or remote control button events
MIT License
208 stars 95 forks source link

Doesn't listen for cmd, backspace, shift, etc. #49

Open panda0603 opened 4 years ago

panda0603 commented 4 years ago

Currently module works for normal keys such as alphabets,

but cannot catch keys such as backpress, cmd, shift, etc. for iOS at least(didn't check android)

Any ways to fire listener for those keys?

hntddt123 commented 4 years ago

Android needs to listen for return, and other keys as well

DarlanCosta commented 4 years ago

` import com.facebook.react.ReactActivity; import android.view.KeyEvent; import com.github.kevinejohn.keyevent.KeyEventModule;

public class MainActivity extends ReactActivity {

/**

`

Try this in MainActivity.java file work for me!