LadybirdBrowser / ancient-history

The Ladybird web browser
BSD 2-Clause "Simplified" License
1.62k stars 102 forks source link

Basic keyboard input #31

Closed diegoiast closed 2 years ago

diegoiast commented 2 years ago

This handles most (?) or keyboard input. For some reason "control+a" and enter are not working on google.com

It can handle plain ASCII, I tested also Hebrew input (high above in the Unicode range, see note bellow), and https://playbiolab.com/ (which is playable now!)

I am unsure about the bid ugly key conversion function... I am unsure if a hashmap would be better... Most of the keys match 1:1 to Qt... but there are some minor differences.

Note about BIDI: The web rendering engine does not handle BIDI, KJC nor hindic, any complex text layout is not working now, I assume someone will code it in the next 10 years :)