haxeui / haxeui-kha

The Kha backend of the HaxeUI framework -
http://haxeui.org
MIT License
45 stars 16 forks source link

Weird caret movement using keyboard causes a fatal crash #65

Open mikaib opened 7 months ago

mikaib commented 7 months ago

After pressing "delete" and "end" a few times the application crashes.

Expected Behavior

End should move the caret to the end, and then delete should do nothing (as usual)

Current Behavior

Text starts moving around like crazy.. Do it a few times and it fatally crashes on web.

Possible Solution

Neglect the existance of the kha textbox.

Steps to Reproduce (for bugs)

  1. Open http://haxeui.org/shared/kha-textarea/
  2. Go to somewhere in the middle of a sentence.
  3. Press "delete" followed by "end" a few times

Media

5d9b9bb17ec42043a98c1096

Test app / minimal test case

http://haxeui.org/shared/kha-textarea/

Context

It has affected me very deeply mentally... It crashed.... :(

Your Environment

Specifically web, I have not tried on DX, GL, Metal or any of the 9999 other backends Kha supports (it's crazy)