Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Combination Issue with Window Management on macOS Sequoia in Alacritty #3986

Open
alsolovyev opened this issue Nov 3, 2024 · 3 comments
Labels
B - bug Dang, that shouldn't have happened DS - macos

Comments

@alsolovyev
Copy link

Description

In macOS Sequoia, new hotkeys for window management (fn + control + arrow keys) have been introduced, and these work seamlessly across most applications. However, in the Alacritty, which relies on winit for its window handling, these shortcuts do not perform as expected.

Problem Details:

  • Expected Behavior: When using the shortcut fn + control + left, the Alacritty window should move to the left side of the screen.
  • Actual Behavior: Instead of moving the window, a sequence ([1;5H when pressing fn + control + left, [1;5F for fn + control + right, etc.) appears within the terminal.

This issue does not occur in other applications on the system, making it unclear whether this is a bug in Alacritty itself or an interaction with winit.

Could this issue be related to winit?

refer to #8209

macOS version

ProductName:    macOS
ProductVersion: 15.0.1

Winit version

0.30.4

@alsolovyev alsolovyev added B - bug Dang, that shouldn't have happened DS - macos labels Nov 3, 2024
@madsmtm
Copy link
Member

madsmtm commented Nov 3, 2024

Probably a bug in Winit, but haven't investigated where

@jeffp123
Copy link

jeffp123 commented Nov 6, 2024

I have noticed the applications that accept fn+ctrl+arrow-key have this in the menu:
Screenshot 2024-11-05 at 10 52 00 PM

And it is not just Alacritty or winit applications, but another notable example is Parallels 19, which also does not have a Window menu, and similarly will not respond to these key combinations.

@madsmtm
Copy link
Member

madsmtm commented Dec 6, 2024

Ah, then the issue isn't in Winit per-say, it's that this kind of windowing functionality requires that you create menu items. Another example is that Command ⌘ + M to minimize doesn't work by default, since the relevant menu item isn't available.

I would recommend that you use the muda crate, and file an issue with them that they're missing these predefine menu items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - macos
Development

No branches or pull requests

3 participants