You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I put a TextBox as content of a TreeViewItem, it seems like I cannot use the arrow keys to move the cursor inside the TextBox without triggering the short cuts of TreeViewItem. In the screencapture it can be seen, that instead of moving the cursor left, the item collapses when the left arrow key is pressed. Pressing it again makes the focus jump to the parent of "Item 2.3", making the TextBox lose its focus entirely:
Weirdly, the up and down arrow don't trigger TreeViewItem's short cuts but can be used to move the curser inside the TextBox.
Is there something I can do, to make TreeViewItem ignore the left and right arrow keys as long as the TextBox has focus so that I can use them to move the cursor?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I put a TextBox as content of a TreeViewItem, it seems like I cannot use the arrow keys to move the cursor inside the TextBox without triggering the short cuts of TreeViewItem. In the screencapture it can be seen, that instead of moving the cursor left, the item collapses when the left arrow key is pressed. Pressing it again makes the focus jump to the parent of "Item 2.3", making the TextBox lose its focus entirely:

Weirdly, the up and down arrow don't trigger TreeViewItem's short cuts but can be used to move the curser inside the TextBox.
Is there something I can do, to make TreeViewItem ignore the left and right arrow keys as long as the TextBox has focus so that I can use them to move the cursor?
Beta Was this translation helpful? Give feedback.
All reactions