macos: Use Command key symbol for meta

Show the Apple Command symbol ⌘ as keyboard shortcut for the Meta key on macos,
similar to GtkAccelGroup.
This commit is contained in:
Arjan Molenaar
2022-12-05 21:00:42 +01:00
parent a9c9678e1f
commit 19aaa8fee5

View File

@@ -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;