react-native-keycode icon indicating copy to clipboard operation
react-native-keycode copied to clipboard

Unable to copy / paste into keycode

Open watadarkstar opened this issue 5 years ago • 2 comments

Seems like caretHidden is set to true and this doesn't let the user paste codes into this key code. Any reason you guys disabled this @tschoffelen?

Great library nonetheless, using it in production. Thank you.

Enabling caretHidden would let users paste like so: Screen Shot 2020-12-14 at 4 49 35 PM

Or at least have a prop to set it.

watadarkstar avatar Dec 14 '20 21:12 watadarkstar

Hey! I don't think there's a direct reason for it, other than visual consistency.

I agree it would be good to be able to override that though. Is that something you'd be able to open a PR for? I'd gladly accept it.

tschoffelen avatar Dec 15 '20 17:12 tschoffelen

Yup I can submit a PR for this @tschoffelen

watadarkstar avatar Dec 15 '20 18:12 watadarkstar