Graphical applications using the GTK library have that feature. It's not a 'linux' feature per-se. If it works, use it, that's what it's there for, you'll have a
hard time making it do what you want otherwise.
The alt-number trick is an ancient thing from the days when everyone used ASCII and QDOS.