w3c / virtual-keyboard

VirtualKeyboard API
https://w3c.github.io/virtual-keyboard/
Other
16 stars 3 forks source link

[Virtual Keyboard API] Return promise for Show/Hide calls? #2

Open travisleithead opened 3 years ago

travisleithead commented 3 years ago

Porting over from MSEdgeExplainers repo https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/415

@snianu filed:

In the TPAC VK API session, there were comments about returning a promise when show/hide is called so the web author knows if the call was successful or not. There are also platform specific restrictions that prevent the VK to come up even after app calls showexplicitly to raise the VK. Not sure if we can deterministically determine if the show/hide call was successful, but should we return a promise indicating that the call was successful? Also if there was an error (e.g. no user activation or no editable element in focus?) then what is the author supposed to do in that case?

Tagging few folks to comment on this issue. @whsieh @rniwa @othermaciej @mustaqahmed