Uwe Stöhr wrote: >> I think it is not a good idea to visualize nobreakspace that way. > > I want to print the shortcut "Ctrl+Space" , not \textvisiblespace. And this > works now.
I was referring to how LyX visualizes nobreakspace. I think this should be changed to something more informative. BTW the drawback of your approach might be that some binding files (at least aqua.bind, AFAICS) do not use the command-alternatives and will thus not display the shortcut. Jürgen