Hide phone virtual keyboard when scrolling

How can I hide a phone (ie chrome on android) virtual keyboard when scrolling in a CM area ?

thx!

You could blur the editor. Not ideal, but as far as I know, that’s the only way a script can control the showing of the virtual keyboard.

I got this working with

if (mobile) codeMirror.on('scroll', cm => $('#someelement').focus());

where someelement is an element that can recieve the focus (ie a div with tabindex=-1)

(cm.blur() did not work for some reason)