Open FoxMcWeezer opened 1 week ago
Thanks @FoxMcWeezer sending this to the product team!
Thanks for reporting and sorry for this issue. We will need to upstream a fix to the Lexical editor, which we use for the text editor field. As a partial workaround, Opt+Left/Right Arrow does work to navigate by word/token. And Cmd+Left/Right Arrow does work if the cursor is adjacent to text (but not when it's adjacent to an @-mention chip).
Note to our team: You can repro this at https://playground.lexical.dev/. Insert a poll (which is a DecoratorNode), and then try keyboard navigation with Cmd+Left/Right Arrow.
Internal tracking issue: https://linear.app/sourcegraph/issue/CODY-3686/cmdleftright-arrow-keys-dont-work-in-chat-lexical-editor-when-cursor
Issue:
Command + Left/Right Arrow
Does Not Move Cursor to Start/End of Line in Text Box on MacDescription:
When using the text box in the application, the Command + Left Arrow or Command + Right Arrow keyboard shortcuts on macOS do not behave as expected. Normally, in native macOS applications (e.g., Notes, Safari, TextEdit), pressing Command + Left Arrow moves the cursor to the beginning of the line, and pressing Command + Right Arrow moves the cursor to the end of the line.
However, in this specific text box:
Steps to Reproduce:
Expected Behavior:
Actual Behavior:
Environment:
Additional Notes: