I noticed in Gnome Text Editor that right-clicking pops up a menu with options like Cut, Copy, Paste, and Select All, but those items don’t show their keyboard shortcuts like the Undo / Redo options do.
I thought it was a bug in Text Editor, so I filed it, but it got moved to GTK. The gtk4-demo app displays the same issue in its GtkTextView widget demos. Is hiding the shortcuts an intentional behavior? If it’s intentional, could individual apps, like Text Editor, override that behavior?
That’s because these keyboard shortcuts are assigned to the cut/cupy/paste signals instead of actions internally in Gtk.
The problem is that the cut/copy/paste signals and actions behave slightly differently, the actions also disable the selection popup used for touch input…
The menu items are linked to actions, so it’s kind of expected that the shortcuts don’t appear on them, as the menu behavior of “copy” is not the same as the shortcut behavior.