From 19aaa8fee54b42dc4e6e479f77d76c8ecc7ef07e Mon Sep 17 00:00:00 2001 From: Arjan Molenaar Date: Mon, 5 Dec 2022 21:00:42 +0100 Subject: [PATCH] macos: Use Command key symbol for meta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show the Apple Command symbol ⌘ as keyboard shortcut for the Meta key on macos, similar to GtkAccelGroup. --- gtk/gtkshortcutlabel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkshortcutlabel.c b/gtk/gtkshortcutlabel.c index 906c15faa6..3da6006b70 100644 --- a/gtk/gtkshortcutlabel.c +++ b/gtk/gtkshortcutlabel.c @@ -144,7 +144,11 @@ get_labels (guint key, GdkModifierType modifier, guint *n_mods) if (modifier & GDK_HYPER_MASK) labels[i++] = C_("keyboard label", "Hyper"); if (modifier & GDK_META_MASK) +#ifndef GDK_WINDOWING_MACOS labels[i++] = C_("keyboard label", "Meta"); +#else + labels[i++] = C_("keyboard label", "⌘"); +#endif *n_mods = i;