id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4632	Shift-F2 recognized as F12	gnachman3	zaytsev	"I built mc from master at commit c8eec91cb6260781eb055fe1b45f5d848cbd121c.

The output of mc -V is:

GNU Midnight Commander unknown
Built with GLib 2.82.4
Built with S-Lang 2.3.3 with terminfo database
Built with libssh2 1.11.1
With builtin editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With multiple codepages support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, shell
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; uintmax_t: 64;

I am the author of iTerm2. A user reported that Shift-F2 (and other shift+function key combos) did not work.

Using mc's ""Options > Learn Keys"" feature, I can see that when I press Shift+F2 it is recognized as F12. I have a completely stock configuration. This is on macOS.

I verified that iTerm2 correctly sends \e[1;2Q when you press Shift+F2. I was able to reproduce the same problem in xterm, Kitty, and Alacritty. The built-in macOS Terminal does not seem to support shift+function keys at all. My $TERM is set to xterm-256color. `infocmp -x` gives `kf2=\EOQ` but as far as I know terminfo isn't very useful for function keys combined with modifiers like shift (I could be wrong about this).

I searched the issues and found some very old ones about shift+function key having other problems. I'm sure there's a lot of history here! I would love to help fix this problem whether from my end (if it's a bug in iTerm2) or yours."	defect	accepted	major	4.8.34	mc-tty	master			egmont			no branch	
