▲
Hacker News
new
|
best
|
ask
|
show
|
jobs
points by
hridyaagrawal
15 hours ago | 0 comments
how are you handling IME and screen readers with canvas? also do you relayout per line or per block? only relaying out changed blocks was the biggest typing speedup in my markdown editor
[–]
orangea
11 hours ago
there is a hidden "<div contenteditable=true>" which contains the entire line being edited, which causes IME to work
[–]
hamza512b
9 hours ago
Yes, exactly that is the input surface. Canvas can not recieve the events otherwise, IME, clipboard and others events go thraugh that.
[–] orangea 11 hours ago
[–] hamza512b 9 hours ago