terminal: Alt arrow keys do nothing; key unbinding broken?

Environment

Windows build number: 10.0.18362.0
Windows Terminal version:  0.7.3291.0

Any other software?
- Ubuntu 16.04.3 LTS
- byobu version 5.106
- tmux 2.1

Note

This issue is a follow-on to #3101. In that issue superfluous keys were being generated. Now it appears no keys are being generated. Alt arrows are dead to me.

Steps to reproduce

  • Start Byobu: byobu
  • Create a new Byobu tab: F2
  • Press alt left or alt right to switch between the tabs

Expected behavior

Byobu switches between the two tabs.

Actual behavior

Nothing happens.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 8
  • Comments: 16 (6 by maintainers)

Commits related to this issue

Most upvoted comments

This behavior is due to #3585. Proper expected behavior is restored with the following:

    "keybindings": [
	{ "command": "unbound", "keys": [ "alt+shift+-" ] },
        { "command": "unbound", "keys": [ "alt+shift+plus" ] },
        { "command": "unbound", "keys": [ "alt+down" ] },
        { "command": "unbound", "keys": [ "alt+left" ] },
        { "command": "unbound", "keys": [ "alt+right" ] },
        { "command": "unbound", "keys": [ "alt+up" ] },
        { "command": "unbound", "keys": [ "alt+shift+down" ] },
        { "command": "unbound", "keys": [ "alt+shift+left" ] },
        { "command": "unbound", "keys": [ "alt+shift+right" ] },
        { "command": "unbound", "keys": [ "alt+shift+up" ] }
    ]

Reopening issue because my alt-arrow buttons stopped working after upgrading Terminal to 0.10.761.0.

Windows build number: 10.0.18363.720 Windows Terminal version: 0.10.761.0

Any other software?

  • Ubuntu 16.04.6 LTS
  • byobu version 5.106
  • tmux 2.1

You know, you’ve just inspired an idea - if the user has no panes, then the Terminal could probably pass the Alt+Arrow through, similar to the way that Ctrl+C for copy sends a ^C when there’s no text selected.

Actually, no, I think we broke unbinding. /cc @zadjii-msft.

...
       		    { "command": "unbound", "keys": [ "alt+down" ] },
       		    { "command": "unbound", "keys": [ "alt+left" ] },
                    { "command": "unbound", "keys": [ "alt+right" ] },
                    { "command": "unbound", "keys": [ "alt+up" ] },
                    { "command": "unbound", "keys": [ "alt+shift+down" ] },
                    { "command": "unbound", "keys": [ "alt+shift+left" ] },
                    { "command": "unbound", "keys": [ "alt+shift+right" ] },
                    { "command": "unbound", "keys": [ "alt+shift+up" ] }
                   ]
}

Just want do confirm that unbinding the alt key bindings worked for me. tmux resizing is now working as expected.