Known issue: wrong keyboard shortcuts on macOS
Closed this issue · 1 comments
The macOS version doesn't use the proper keyboard shortcuts for some actions such as cut, copy, paste and select all.
This is a known issue that affects upstream dependencies, and there is not much to fix here at the moment, so I'm marking this as a Known issue if someone ever reports this as a bug in Cartero.
More context: currently, GTK 4 apps use <Ctrl>
as the primary modifier for all keyboard shortcuts. On GNU/Linux and Windows this makes sense because the keyboard shortcuts are already Ctrl-X, Ctrl-C, Ctrl-V. However, on macOS most users will expect Cmd-X, Cmd-C and Cmd-V as the keyboard shortcuts to cut, copy and paste.
Solution 1: upstream GTK. On GTK 4.16, they will change the primary modifier to <Meta>
(the Cmd key) on macOS. The merge request has been already integrated. If we just wait until GTK 4.16 is stable, once it is possible to compile a macOS version with that version, the issue will probably be automatically fixed.
Solution 2: language bindings. There is a workaround to change the keyboard shortcuts for cut, copy and paste. Many apps already use it to have better compatibility with macOS. Unfortunately, there seems to be some kind of issue at the moment with the language bindings for the UI toolkit that Cartero uses which currently prevents me from using the workaround in my application.
Closing this because Cartero for macOS is now packaged using GTK 4.16, which behaves as expected.