#14885

macOS: cmd-W (to close tab) not working on "Dvorak-Qwerty ⌘" layout

Openbo2themaxopened 3d ago

Discussed in https://github.com/ghostty-org/ghostty/discussions/11765

Originally posted by fanckush March 23, 2026

Issue Description

just downloaded a fresh ghostty. I use "Dvorak-Qwerty ⌘" layout on macOS

  1. cmd-t -> this works! Opens new tabs as expected
  2. cmd-w -> should close tabs but opens the config file in text edit instead

The reason this happens is because , and w are swapped for dvorak and qwerty but for this specific layout when you hold ⌘ (cmd) the layout transforms into qwerty

maybe related:

  1. https://github.com/ghostty-org/ghostty/issues/11396#issuecomment-4085777330
  2. https://github.com/ghostty-org/ghostty/issues/7315

Expected Behavior

when cmd is held, it should fully respect qwerty.. seems like some keys do some don't

Actual Behavior

does what cmd-, does instead (swapped) also cmd-, actually closes the tab, so they are exactly swapped

Reproduction Steps

  1. have US qwerty layout (on macOS)
  2. have 3 tabs open in Ghostty
  3. hit cmd-W -> see how one tab closes and 2 remain
  4. switch to "Dvorak-Qwerty ⌘" layout
  5. hit cmd-W again (same key) -> notice how the config opens

Ghostty Logs

No response

Ghostty Version

Ghostty 1.3.1

Version
  - version: 1.3.1
  - channel: stable
Build Config
  - Zig version   : 0.15.2
  - build mode    : .ReleaseFast
  - app runtime   : .none
  - font engine   : .coretext
  - renderer      : renderer.generic.Renderer(renderer.Metal)
  - libxev        : kqueue

OS Version Information

macOS 26.3.1 (a)

(Linux only) Display Server

None

(Linux only) Desktop Environment/Window Manager

No response

Minimal Ghostty Configuration

empty config.. fresh install

Additional Relevant Configuration

No response

I acknowledge that:

  • I have reviewed the FAQ and confirm that my issue is NOT among them.
  • I have searched the Ghostty repository (both open and closed Discussions and Issues) and confirm this is not a duplicate of an existing issue or discussion.
  • I have checked the "Preview" tab on all text fields to ensure that everything looks right, and have wrapped all configuration and code in code blocks with a group of three backticks (```) on separate lines.

Activity

0

No activity yet.