`Alt` + `-` not caught by terminal
I noticed that the combination Alt + - is not caught by the xterm.js terminal instance. I've tested this by logging the keypresses with terminal.onKey. The keypress itself is recognized by the browser.
Details
- Browser and browser version: Firefox 141.0
- OS version: Arch Linux 6.15.7
- xterm.js version: 5.5.0,
Steps to reproduce
- Add logging via the
terminal.onKeyevent listener. - Press
Alt+-and see that no event is caught by the terminal.
It seems like it's not only Alt + -, but also Alt + ;.
Alt - 3 also non-functional on MacOS, which is # on UK keyboards (at least)
Alt+Arrow also seems to be uncaught, latest comment on #225 suggests its not just me.
@RUGMJ for alt+arrow xterm.js doesn't do that anymore because it was non-standard (https://github.com/xtermjs/xterm.js/issues/4538), you need a keybinding set up in your embedder if you want that.
I cannot reproduce this in xterm.js v6 on Windows or macOS. On macOS I tried various IMEs including GB and it was they all worked fine for me in the demo.