sprite-1 I can't seem to find any examples on the usage of the add_shortcut() method from a PopupMenu. How do I use it in GDScript?
kryzmak I must admit, that I also until now find no way to work with that method. My workaround is the following: func _input(event): if Input.is_key_pressed(scancode of key): $popup_node.popup()
sprite-1 Yeah but I want to show the shortcut along with the menu item. Kinda like how the IDE does it.
TwistedTwigleg Maybe this reddit post will help? Once you have a shortcut made, I think all you have to do is pass it in as the first parameter in add_shortcut.