Closing keyboard on iPad in div contenteditable

后端 未结 2 1297
广开言路
广开言路 2021-02-10 15:19

Is there a way force the keyboard on iPad to close on blur of div \'contenteditable\'??

Here is a basic jsfiddle: http://jsfiddle.net/j_tufte/7HDmN/

I\'d like to

2条回答
  •  隐瞒了意图╮
    2021-02-10 16:06

    You should be able to do exactly that -- attach an event listener to the button and use it to blur() the input field that caused the keyboard popup (use JavaScript to get a handle on that element and then call it's blur method). That supposedly closes the iPad keyboard.

提交回复
热议问题