Vmenu fixed I think. Hopefully last thing before new version.

This commit is contained in:
Storm Dragon
2026-05-24 17:13:38 -04:00
parent c143c9a561
commit b9518f52ec
2 changed files with 25 additions and 1 deletions
+18
View File
@@ -226,6 +226,24 @@ def test_pty_vmenu_unknown_stdin_is_consumed_without_injection():
event_queue.put.assert_not_called()
@pytest.mark.unit
def test_pty_vmenu_stdin_does_not_duplicate_current_x11_key():
pty_driver = PtyDriver()
event_queue = Mock()
pty_driver.env = {
"input": {"curr_input": ["KEY_RIGHT"]},
"runtime": {
"VmenuManager": Mock(get_active=Mock(return_value=True)),
},
}
pty_driver.inject_text_to_screen = Mock()
pty_driver.handle_stdin_input(b"\x1b[C", event_queue)
pty_driver.inject_text_to_screen.assert_not_called()
event_queue.put.assert_not_called()
@pytest.mark.unit
def test_pty_stdin_input_honors_interrupt_disabled():
pty_driver = PtyDriver()