Alt+w doesn't map correctly to the action in settings.json #17169

Closed
opened 2026-01-31 05:34:08 +00:00 by claunia · 5 comments
Owner

Originally created by @fransoaardi on GitHub (Apr 6, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19042.1586

Other Software

No response

Steps to reproduce

Most of the parts are omitted.
When setting like below, any commands with alt+w doesn't work.

{
    "$schema": "https://aka.ms/terminal-profiles-schema",
    "actions": 
    [
        {
            "command": "closeTab",
            "keys": "alt+w"
        }
    ]
}

Expected Behavior

Expect keymap actions to be mapped correctly and work as expected.
When pressing alt+w it should close the tab on the terminal.

Actual Behavior

alt+w doesn't work. Mapping alt+w to other commands also doesn't work. However, setting ctrl+w to closeTab just works.

Originally created by @fransoaardi on GitHub (Apr 6, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19042.1586 ### Other Software _No response_ ### Steps to reproduce Most of the parts are omitted. When setting like below, any commands with `alt+w` doesn't work. ```json { "$schema": "https://aka.ms/terminal-profiles-schema", "actions": [ { "command": "closeTab", "keys": "alt+w" } ] } ``` ### Expected Behavior Expect keymap actions to be mapped correctly and work as expected. When pressing `alt+w` it should close the tab on the terminal. ### Actual Behavior `alt+w` doesn't work. Mapping `alt+w` to other commands also doesn't work. However, setting `ctrl+w` to `closeTab` just works.
claunia added the Issue-BugArea-InputNeeds-Tag-FixNeeds-ReproProduct-Terminal labels 2026-01-31 05:34:08 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Apr 6, 2022):

Any chance you're using any sort of IME? What Keyboard layout are you using? I just tried adding this in the SUI locally and it seemed to work. Does alt+{any other key} work either?

@zadjii-msft commented on GitHub (Apr 6, 2022): Any chance you're using any sort of IME? What Keyboard layout are you using? I just tried adding this in the SUI locally and it seemed to work. Does <kbd>alt+{any other key}</kbd> work either?
Author
Owner

@fransoaardi commented on GitHub (Apr 7, 2022):

@zadjii-msft Hi, I'm mainly using Korean Microsoft IME, I also use English(United States) US Keyboard, but both don't work.
My keyboard layout is QWERTY. It's weird that alt+{any other key} works, but not alt + w.

@fransoaardi commented on GitHub (Apr 7, 2022): @zadjii-msft Hi, I'm mainly using Korean Microsoft IME, I also use English(United States) US Keyboard, but both don't work. My keyboard layout is QWERTY. It's weird that alt+{any other key} works, but not `alt + w`.
Author
Owner

@fransoaardi commented on GitHub (Apr 22, 2022):

@zadjii-msft Hi, gentle ping. Any updates?

@fransoaardi commented on GitHub (Apr 22, 2022): @zadjii-msft Hi, gentle ping. Any updates?
Author
Owner

@zadjii-msft commented on GitHub (Apr 26, 2022):

Sorry, I have no idea. I can't get this to repro, even with the Korean IME installed. At this point I'd suspect that some other app is hooking that key, but which one? I'd have no idea. Does alt+w work in any other app?

At this point all I've got is internet searches to help you - any chance you have "QQ" installed? Some random forum post from 2014 mentioned that.

@zadjii-msft commented on GitHub (Apr 26, 2022): Sorry, I have no idea. I can't get this to repro, even with the Korean IME installed. At this point I'd suspect that some other app is hooking that key, but which one? I'd have no idea. Does `alt+w` work in any other app? At this point all I've got is internet searches to help you - any chance you have "QQ" installed? Some random forum post from 2014 mentioned that.
Author
Owner

@fransoaardi commented on GitHub (Apr 26, 2022):

@zadjii-msft
I tested again on my local and it now suddenly works. It's really weird. I haven't installed "QQ", FYI.
I think it is resolved now. Thanks for your help.

Closing.

@fransoaardi commented on GitHub (Apr 26, 2022): @zadjii-msft I tested again on my local and it now suddenly works. It's really weird. I haven't installed "QQ", FYI. I think it is resolved now. Thanks for your help. Closing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17169