Paste the code above into a file and then open it in a browser.
Also open another window (doesn't matter what) side by side.
Focus to the textbox, type something and then unfocus the browser window.
It shows the blur event is triggered, which is indeed correct. But whatInput.ask() should return mouse instead of keyboard.
Paste the code above into a file and then open it in a browser. Also open another window (doesn't matter what) side by side. Focus to the textbox, type something and then unfocus the browser window. It shows the blur event is triggered, which is indeed correct. But
whatInput.ask()
should returnmouse
instead ofkeyboard
.