## 事象 [[Ghostty]]から[[Raycast]]を起動した状態で[[Karabiner-Elements]]のEventViewerを見ても、Applicationの判定が[[Ghostty]]のままになる。 ![[20250510_17_45_19.webp]] 期待値は[[Raycast]]になること。これでは以下の点で不都合。 - [[Raycast]]に対するキーバインドができない - [[Raycast]]を起動したアプリケーションによってキーバインドが変わってしまう ### 環境 | 対象 | バージョン | | ---------------------- | ------ | | [[macOS]] | 15.4.1 | | [[Ghostty]] | 1.1.3 | | [[Karabiner-Elements]] | 15.3.0 | | [[karabiner.ts]] | 1.31.0 | | [[Raycast]] | 1.98.2 | ## 原因 [[Raycast]]はオーバーレイであるため、[[Karabiner-Elements]]のアプリケーション判定が効いてなさそう。明確に言及されていないが、以下のissueの状況から推定。 <div class="link-card-v2"> <div class="link-card-v2-site"> <img class="link-card-v2-site-icon" src="https://github.githubassets.com/favicons/favicon.svg" /> <span class="link-card-v2-site-name">GitHub</span> </div> <div class="link-card-v2-title"> Possible to operate conditionally on overlay (e.g. ChatGPT, Raycast, Alfred, etc.)? · Issue #3966 · pqrs-org/Karabiner-Elements </div> <div class="link-card-v2-content"> I’d like to disable certain keyboard shortcuts while using the overlays for ChatGPT, Raycast, and Alfred. Throug ... </div> <img class="link-card-v2-image" src="https://opengraph.githubassets.com/6f4dfc8aea13ad4084a32c7de05fab2e5059f8e2adf5f2d03c00c363240fd310/pqrs-org/Karabiner-Elements/issues/3966" /> <a href="https://github.com/pqrs-org/Karabiner-Elements/issues/3966"></a> </div> ## 解決策 [[Karabiner-Elements]]を16.0.0以上にバージョンアップする。 16.0.0のリリースで新機能として対応されている。 > - `frontmost_application_if` can now detect overlay windows, such as Spotlight, using the Accessibility API. > > *[Release notes](https://karabiner-elements.pqrs.org/docs/releasenotes/#karabiner-elements-1600)* <div class="link-card-v2"> <div class="link-card-v2-site"> <img class="link-card-v2-site-icon" src="https://karabiner-elements.pqrs.org/favicons/favicon-32x32.png" /> <span class="link-card-v2-site-name">Karabiner-Elements</span> </div> <div class="link-card-v2-title"> Release notes </div> <div class="link-card-v2-content"> Karabiner-Elements 16.0.0 📦 Download 📅 Release date May 3, 2026 🔔 Important Notes Karabiner-Core-Service now ... </div> <img class="link-card-v2-image" src="https://karabiner-elements.pqrs.org/images/logo.png" /> <a href="https://karabiner-elements.pqrs.org/docs/releasenotes/#karabiner-elements-1600"></a> </div>