dhutaryan / ngx-mat-timepicker

Material timepicker based on material design
https://dhutaryan.github.io/ngx-mat-timepicker/
MIT License
51 stars 7 forks source link

Add support for virtual keyboards (mobile) #148

Open Todor46 opened 1 month ago

Todor46 commented 1 month ago

It is not possible to input the time manually using a virtual keyboard on a mobile phone.

I am using Huawei P30, with Microsoft SwiftKey keyboard and when I try to input the time manually, it has no effect.

My guess is that this is due to how the changes are being registered in the field. The virtual keyboard does not trigger key keydown and keyup events, so the input event has to be used to cover this case.

If I make some time for it, I can maybe contribute.

dhutaryan commented 1 month ago

It works on the iphone. Could you attach a video/gif?

Todor46 commented 1 month ago

Yup. Here's a video:

https://github.com/dhutaryan/ngx-mat-timepicker/assets/20663295/2fb6f7fa-1396-4368-a2cf-4814fb69fee3

I'm not sure if it's a big issue, but happens with some keyboards on Android. I've faced this issue myself while back where I needed to implement support for this in a code verification component for mobile.