Hacker News new | ask | show | jobs
by orangea 28 days ago
there is a hidden "<div contenteditable=true>" which contains the entire line being edited, which causes IME to work
1 comments

Yes, exactly that is the input surface. Canvas can not recieve the events otherwise, IME, clipboard and others events go thraugh that.