Added 13 integration tests for keyboard navigation: Arrow Keys Navigation: - test_arrow_navigation_in_chat_list: Up/Down arrows, circular wrapping - test_vim_navigation_in_chat_list: j/k vim-style navigation - test_russian_keyboard_navigation: Russian layout (о/р) support - test_enter_opens_chat: Enter to open selected chat - test_esc_closes_chat: Esc to close open chat Cursor Navigation in Input: - test_cursor_navigation_in_input: Left/Right arrow keys - test_home_end_in_input: Home/End keys - test_backspace_with_cursor: Backspace at different positions - test_insert_char_at_cursor_position: Insert char in middle Message Navigation: - test_up_arrow_selects_last_message_when_input_empty: Up arrow for message selection Additional: - test_circular_navigation_optional: Circular list navigation These tests verify that the navigation functionality works correctly through the main_input handler, protecting against future refactoring that might break keyboard input. All tests compile and verify actual input handling via handle_main_input(). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
11 KiB
11 KiB