Whisky-App / Whisky

A modern Wine wrapper for macOS built with SwiftUI
https://getwhisky.app
GNU General Public License v3.0
12.3k stars 260 forks source link

[Bug]: When I press Command-A, the window receives Ctrl-A instead of Alt-A #1060

Open clouds56 opened 3 months ago

clouds56 commented 3 months ago

Description

I think it is since macOS keyboard shortcut receives Cmd-A and translate it into an event. image But I cannot change this behavior in any settings.

I've tried remap shortcut to Option-A, but it only affects Whiskey.app, not the wine window image

Steps to reproduce

  1. Open wine notepad and enter some text
  2. press Cmd-A

Now all text are selected.

Expected behaviour

Since Alt-A is not any shortcut in notepad, it should enter a in textarea

Logs

Whisky Version: 2.3.2
Date: 2024-07-17T17:58:15Z
macOS Version: 14.4.1

Bottle Name: Test
Bottle URL: /Users/aaa/Library/Containers/com.isaacmarovitz.Whisky/Bottles/AE10C43A-4037-44AE-87F5-87FC84B324CB

Wine Version: 7.7.0
Windows Version: win10
Enhanced Sync: msync

Metal HUD: false
Metal Trace: false

Arguments: start /unix /Users/aaa/Library/Containers/com.isaacmarovitz.Whisky/Bottles/AE10C43A-4037-44AE-87F5-87FC84B324CB/drive_c/windows/notepad.exe

Environment:
{
    "DXVK_ASYNC" = 1;
    "GST_DEBUG" = 1;
    WINEDEBUG = "fixme-all";
    WINEESYNC = 1;
    WINEMSYNC = 1;
    WINEPREFIX = "/Users/aaa/Library/Containers/com.isaacmarovitz.Whisky/Bottles/AE10C43A-4037-44AE-87F5-87FC84B324CB";
}

msync: bootstrapped mach port on wine-40290e0-msync.
msync: up and running.
002c:err:winediag:getaddrinfo Failed to resolve your host name IP

What version of Whisky are you using?

2.3.2

What version of macOS are you using?

Sonoma (macOS 14)

Issue Language

clouds56 commented 3 months ago

After some investigation, the Edit menu is introduced in whiskey modified wine https://github.com/Whisky-App/wine/blob/c62434837078fc96cff3651a84d2d6614304708f/dlls/winemac.drv/cocoa_app.m#L341-L355.

And to disable it:

It might be better to add an option to enable it in Program options.