-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove alt -> ctrl+arrow hack in favor of embedder-specific solutions #4538
Comments
Thank you Tyriar for saving my life. I have spent hours to figure out why my Alt key doesn't work... For anyone who wants a workaround, here is my hack for
|
Is there any recent update on this? I've been frustrated by this behavior in VS code and finally figured out this was the cause (and found the linked workaround via VS code's shortcuts). I see the help wanted tag - if it's just a matter of getting someone to do it, I'm happy to make the changes. |
@dmarcuse no updates, just needs someone to help out. We'll need this removed in xterm.js and then some default keybindings added to VS Code. So then disabling this in VS Code would be a matter or disabling keybindings (as opposed to creating new ones which is more difficult). |
Sounds good, I'll set aside some time to work on this over the weekend then. |
You could just "fix" it by simply override the key binding if you're using vscode. Maybe the {
"key": "alt+left",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u001b[1;3D"
},
"when": "terminalFocus"
},
{
"key": "alt+right",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u001b[1;3C"
},
"when": "terminalFocus"
}, Result: |
@balthild yep, we just need that keybinding built in to VS Code. So those keybindings added somewhere over here: https://github.com/microsoft/vscode/blob/3ae6c5ef651585b12870828230f214eed2e6ef07/src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts#L245-L249 And then remove the overrides from xterm.js |
Context: #264 (comment)
Finding the commit they were added to confirm is also a good idea.
xterm.js/src/common/input/Keyboard.ts
Lines 114 to 189 in 8b42244
The text was updated successfully, but these errors were encountered: