Skip to content

Cmd + ~ does not switch between OS windows in Kitty under Mac OS #4657

@mattpolzin

Description

@mattpolzin

Describe the bug
Cmd + ~ does not switch between OS windows in Kitty under Mac OS. For most apps, that shortcut would cycle between windows of the same application. For Kitty, you see a diagnostic-like output in the terminal of " (arg: 9)".

To Reproduce
Steps to reproduce the behavior:

  1. With more than one Kitty OS window open in Mac OS, press the tilde key while holding the command key.
  2. See indicated output text and note that the window with focus has not switched.

Environment details

kitty 0.24.2 created by Kovid Goyal
Darwin MacBook-Pro-2.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64
ProductName:	macOS ProductVersion:	11.6 BuildVersion:	20G165
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/bash
Loaded config files:
  /Users/mattpolzin/.config/kitty/kitty.conf

Config options different from defaults:
background_opacity            0.95
font_family                   JetBrains Mono Regular
macos_thicken_font            0.25
scrollback_pager_history_size 1073741824
shell_integration             frozenset({'disabled'})
tab_activity_symbol           ⦿
tab_bar_style                 powerline
tab_powerline_style           slanted
window_padding_width          FloatEdges(left=2.0, top=2.0, right=2.0, bottom=2.0)
Colors:
	color4                        #0000b2   
	foreground                    #b7cbff   

Environment variable names seen by the kitty process:
	COMMAND_MODE
	HOME
	LANG
	LOGNAME
	PATH
	SHELL
	SSH_AUTH_SOCK
	SSL_CERT_FILE
	TMPDIR
	USER
	XPC_FLAGS
	XPC_SERVICE_NAME
	__CFBundleIdentifier
	__CF_USER_TEXT_ENCODING

Additional context
The problem is reproducible with no configuration applied. Interestingly (but perhaps not importantly), the output noted above with "arg: 9" is only printed when using the bash shell. In zsh, the bug persists, but nothing is printed to the screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions