Skip to content
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

Left/Right Cursor keys navigate outside of input controls #213

Open
tomlm opened this issue Dec 16, 2024 · 2 comments · May be fixed by #222
Open

Left/Right Cursor keys navigate outside of input controls #213

tomlm opened this issue Dec 16, 2024 · 2 comments · May be fixed by #222
Assignees
Labels
bug Something isn't working

Comments

@tomlm
Copy link
Collaborator

tomlm commented Dec 16, 2024

Repo

  1. go to TextBox gallery page
  2. Click in TextBox....type a bunch of chars.
  3. Now cursor back and forth. When you cursor to the end of the text it stops.
  4. When you cursor to the front of the text it moves the focus away from the input control.

Expected

That it behaves the way Avalonia does, which is to keep focus in input control.

@tomlm tomlm added the bug Something isn't working label Dec 16, 2024
@jinek
Copy link
Owner

jinek commented Dec 16, 2024

That's probably because of ArrowsAndKeyboardNavigationHandler: if arrow key is not handled then it focuses an element at the direction of an arrow. We can switch it off by default since we implemented accesskey. May be would be a good option to add additional assembly, like, Consolonia.Addons for such kind of additional stuff.

@jinek jinek self-assigned this Dec 19, 2024
@jinek
Copy link
Owner

jinek commented Dec 19, 2024

Goes together with #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants