on-screen-keyboard-detector icon indicating copy to clipboard operation
on-screen-keyboard-detector copied to clipboard

Add support for React / Next.JS

Open Alwinator opened this issue 3 years ago • 7 comments

I thought react support would be useful and I needed it for a project

Alwinator avatar May 23 '22 13:05 Alwinator

Awesome! Thanks for the PR – I'll try to look into it in the next couple of days.

semmel avatar May 25 '22 16:05 semmel

What's the state of this PR?

nikwen avatar Jan 09 '23 12:01 nikwen

@nikwen @Alwinator I did not find the time to integrate this PR. Reasons:

  • being not my favs I don't have a setup ready for React/Next.JS to test
  • outdated technique; It really should use the VirtualKeyboard API on Android.

The second point suggests that API-wise the whole project should really be a VirtualKeyboard API polyfill for Firefox and on iOS. Apple's and Mozilla's "intent to implement" the VirtualKeyboard API is right now pretty unclear. It doesn't even appear to be "under consideration" for the WebKit team.

So in summary:

  • I myself do not even use this project anymore.
  • And update would be a 100% rewrite.

Anyone interested in co-ownership?

semmel avatar Jan 10 '23 12:01 semmel

Thanks for the offer, but unfortunately paid work is keeping me busy.

Alwinator avatar Jan 10 '23 16:01 Alwinator

@semmel Thank you so much for your detailed reply and the pointer to the VirtualKeyboard API!

Do you have any code that you can share where you've used the VirtualKeyboard API to achieve similar results and maybe even added workarounds for Firefox/Safari? That would significantly speed up the implementation of what you suggest.

In any case, thank you very much again for your pointer to that API.

nikwen avatar Jan 10 '23 17:01 nikwen

@nikwen Sorry, I have not worked with the VirtualKeyboard API yet.

semmel avatar Jan 10 '23 18:01 semmel

@nikwen Sorry, I have not worked with the VirtualKeyboard API yet.

Alright, thank you for your reply! I'm looking into the different APIs at the moment and if I end up writing any reusable code, I'll share it here.

nikwen avatar Jan 11 '23 17:01 nikwen