Skip to content

Commit 693b6e6

Browse files
authored
Merge pull request #3519 from davep/more-f3
Allow F3 with modifier keys
2 parents ea8f1cd + 8be3e37 commit 693b6e6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/textual/_ansi_sequences.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@
9898
# Xterm
9999
"\x1b[1;2P": (Keys.F13,),
100100
"\x1b[1;2Q": (Keys.F14,),
101-
# '\x1b[1;2R': Keys.F15, # Conflicts with CPR response.
101+
"\x1b[1;2R": (
102+
Keys.F15,
103+
), # Conflicts with CPR response; enabled after https://github.com/Textualize/textual/issues/3440.
102104
"\x1b[1;2S": (Keys.F16,),
103105
"\x1b[15;2~": (Keys.F17,),
104106
"\x1b[17;2~": (Keys.F18,),
@@ -112,7 +114,9 @@
112114
# Control + function keys.
113115
"\x1b[1;5P": (Keys.ControlF1,),
114116
"\x1b[1;5Q": (Keys.ControlF2,),
115-
# "\x1b[1;5R": Keys.ControlF3, # Conflicts with CPR response.
117+
"\x1b[1;5R": (
118+
Keys.ControlF3,
119+
), # Conflicts with CPR response; enabled after https://github.com/Textualize/textual/issues/3440.
116120
"\x1b[1;5S": (Keys.ControlF4,),
117121
"\x1b[15;5~": (Keys.ControlF5,),
118122
"\x1b[17;5~": (Keys.ControlF6,),
@@ -124,7 +128,9 @@
124128
"\x1b[24;5~": (Keys.ControlF12,),
125129
"\x1b[1;6P": (Keys.ControlF13,),
126130
"\x1b[1;6Q": (Keys.ControlF14,),
127-
# "\x1b[1;6R": Keys.ControlF15, # Conflicts with CPR response.
131+
"\x1b[1;6R": (
132+
Keys.ControlF15,
133+
), # Conflicts with CPR response; enabled after https://github.com/Textualize/textual/issues/3440.
128134
"\x1b[1;6S": (Keys.ControlF16,),
129135
"\x1b[15;6~": (Keys.ControlF17,),
130136
"\x1b[17;6~": (Keys.ControlF18,),

0 commit comments

Comments
 (0)