Thanks! I think we definitely want to have this in, as it's small and a relatively common need on mobile. We should clarify the comment here: Calling this on canvas with editable=1, does it immediately pop up the keyboard? If so, and user closes the keyboard, does calling this function again with editable=1 reopen the keyboard? Also, if the keyboard is open, and this is called with editable=0, does it immediately close the keyboard?

I am assuming no, and instead setting the canvas editable means that the next touch on the canvas will trigger the keyboard to open? We should make that clear in the wording. Also, can you add a use of this function in https://github.com/kripken/emscripten/blob/master/tests/test_html5.c ?