Can't Override "Control-Option-Command 0" (Restore Text and Session Size)
Thanks for filing an issue! Please answer the questions below so I can help you.
iTerm2 version: 3.3.3
OS version: 10.14 Mojave
Detailed steps to reproduce the problem:
So this is niche, I know, but I have a global shortcut (Keyboard » Shortcuts » Services » General) that launches an "Automator » Run Applescript" Workflow to mute/unmute the system volume:
prompt% osascript -e 'set volume output muted (not output muted of (get volume settings))'
Anyway, I bind that to
Control-Option-Command 0 (and similar scripts for 'Ctrl-Opt-Cmd -' to lower the volume by 10%, and 'Ctrl-Opt-Cmd +' to raise it by 10%).
The latter two work fine, but iTerm2 seems to grab the 'Option-Command 0' — even though I've set both
Opt-Cmd 0 and
Ctrl-Opt-Cmd 0 to
Ignore in the preferences.
(It's like 'Ignore' still captures the keystroke and simply discards it, rather than passing it along to whatever System Events handler would normally catch it; perhaps 'Do Nothing' would be a more accurate description of the action? «shrug»)
At any rate, I don't even know whether what I'm asking for is something you have control over — since it's burned into the ".xib" file, for all I know maybe that gets handled differently — but I thought I'd mention it...
PS: As an aside [while I'm speaking of the ".xib" menus, and in case it helps], I also noticed that even though I've swapped Cmd-D and Shift-Cmd-D in my preferences (I prefer the default to Split Horizontally, not Vertically), the "Shell" menu bar item still shows the default key bindings.
Like I say though, it wouldn't surprise me if what I'm asking is beyond what Apple allows... "Think Different" my foot!
Finally, one last wrinkle: even though I've "Ignored" those keys, and they "Do Nothing" in the terminal windows, I was surprised to notice that, if I've got the Preferences window open, they still revert to their default behavior, and change the size of whatever terminal window I had open previously! That's totally not a big deal at all, but again, I just thought it was worth mentioning/documenting. «grin»