-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextField and TextArea don't behave natively #46
Comments
Noticed another non-native quirk: Holding backspace visually does nothing at that point (when it is expected to show more text being removed), but after a period 'cuts' to a full line of text. I need to investigate this more so I can tell you more precisely how this is working. Edit: It seems like textfields normally work by fixing the rightmost character to the right of the textfield when the text is longer than the field width (keep in mind things like moving to the middle of the string are possible though). Emulating native behavior is tricky, and certainly feels strange as a user when it doesn't work quite right. I'll have finished the bulk of my exams in a week and will hopefully be able to contribute some code, at least for |
Nice one, ill have a stab at these soon (weekend probably - maybe sooner) |
No worries. I've created a fork and have gotten started. I have Control+A working. Just noting another issue I found and will try to fix: Clicking 'shift' removes a selection. Natively, tapping shift and not moving the caret does nothing. The issue is caused by
in Edit: Adding a simple I wonder if the movement code |
Do we think this is closable now? |
The initial problems are fixed, but text components don't yet behave natively.
These are the immediate things I see, obviously all only tangential to the keyboard based improvements I initially proposed. As I said in Discord, I'm happy to try and work on these in a couple of days, or open these in a new issue. Thanks! |
Expected Behavior
Control + arrow keys
should move cursor word by wordControl + a
should select all textControl + c
should copy to the clip boardControl + v
should paste from the clip boardCurrent Behavior
Control + arrow keys
move cursor by single characterControl + a
does nothingControl + c
does nothing on HTML5 and segfaults on linux (though I believe the segfault is Kha and not HaxeUI)Control + v
does nothingSteps to Reproduce (for bugs)
Test app / minimal test case
Kha HaxeUI skeleton with
<textfield placeholder="Test" width="100%">
should be sufficient.
Context
Search box for searching assets in application does not behave as expected.
Your Environment
The text was updated successfully, but these errors were encountered: