Skip to content
Merged

f3 fix #5822

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions src/textual/_xterm_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,11 @@ def send_escape() -> None:
# Check cursor position report
cursor_position_match = _re_cursor_position.match(sequence)
if cursor_position_match is not None:
row, column = cursor_position_match.groups()
# Cursor position report conflicts with f3 key
# If it is a keypress, "row" will be 1, so ignore
if int(row) != 1:
x = int(column) - 1
y = int(row) - 1
on_token(events.CursorPosition(x, y))
break
row, column = map(int, cursor_position_match.groups())
x = int(column) - 1
y = int(row) - 1
on_token(events.CursorPosition(x, y))
break

# Was it a pressed key event that we received?
key_events = list(sequence_to_key_events(sequence))
Expand Down
Loading