Skip to content

Hotkey propagation stopped when Xcode focused #33

@alanhamlett

Description

@alanhamlett

Check if applicable

  • I have searched the existing issues (required)
  • I reproduced the issue with an empty Neovim configuration (init.vim or init.lua)
  • I'm willing to help fix the problem and contribute a pull request

Describe the bug

I have some Mac hotkeys defined. When Xcode is focused and ShadowVim running, the hotkeys don't work, because ShadowVim is intercepting the keypresses and sending them to Neovim, but those hotkeys don't do anything in Neovim.

How to reproduce?

  1. Install iTerm2
  2. Set a hotkey to show/hide the terminal
  3. Focus Xcode.app with ShadowVim running
  4. Press the hotkey you defined

Neovim configuration

empty `init.vim`

Environment

ShadowVim 0.1.1 (2)

$ sw_vers -productVersion
13.2.1

$ uname -m
x86_64

$ whereis nvim
nvim: /usr/local/bin/nvim /usr/local/share/man/man1/nvim.1

$ nvim --version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.1/share/nvim"

Run :checkhealth for more info

$ xcodebuild -version
Xcode 14.2
Build version 14C18

$ defaults read -app Xcode KeyBindingsMode
Default

$ defaults read -app Xcode DVTTextAutoCloseBlockComment
0

$ defaults read -app Xcode DVTTextAutoInsertCloseBrace
0

$ defaults read -app Xcode DVTTextEditorTrimTrailingWhitespace
0

$ defaults read -app Xcode DVTTextEnableTypeOverCompletions
0

$ defaults read -app Xcode DVTTextIndentCaseInC
0

$ defaults read -app Xcode DVTTextUsesSyntaxAwareIndenting
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions