Shift modifier not reported for F5–F12 and other special keys with CSU u reporting enabled
- iTerm2 versions: 3.3.0beta11 and 3.3.20190615-nightly
- OS version: macOS 10.14 Beta (18A377a)
- com.googlecode.iterm2.plist
Detailed steps to reproduce the problem:
- Enable "Report modifiers using CSI u"
- Compile and run keysleuth
- Press F12 while holding shift
iTerm reports ESC [24~
with no modifier, but it should report ESC [24;2~
(shift modifier). If other modifiers are applied in addition to shift, all but shift are reported.
The keys that are affected are all the ones reported with ESC [...~
(listed in the CSI u spec, except those marked with asterisks): Insert, Delete, Page Up, Page Down and F5—F12 (inclusive). The "really special" keys (arrow keys, F1–F4, Home, End) and CSI u keys aren't affected by this issue. (You can test the CSI u keys by trying Ctrl+Return
vs Shift+Ctrl+Return
and seeing whether they differ.)
I'm not an expert on the many quirks of terminal input, so there could be a valid reason for this that I'm unaware of for all I know, but Hyper does behave as expected (Shift+F12
reports ESC [24;2~
).