command-tab with AltTab and command/option remapping

Bug report

Thanks for filing an issue! Please answer the questions below so I can help you.

Detailed steps to reproduce the problem

  1. Configure iTerm2 to:
    1. swap the command and option keys
    2. set Do Not Rempap Modifiers for command-tab
  2. Run AltTab, configured to hold command and press tab to select next window, then focus selected window on release. AltTab config screenshot

What happened

When command-tab is pressed, the usual AltTab list of windows comes up, and hitting command-tab again goes to the next window in the list, but releasing command-tab does not focus the selected window.

Releasing command-tab and then pressing the spacebar does focus the selected window, as usual.

In any other application, command-tab brings up the list of windows, and releasing command-tab focuses the selected window, including iterm2 windows.

What should have happened

Releasing command-tab should have focused the selected window.