I’m working on my own text editor in silverlight. I made different functions to make text in a richtextbox bold, italic or underlined. I want the functions to be run also when the user presses the combinations ctrl-B, ctrl-U, ctrl-I.
What would be the best solution for this?
You can detect user input with the KeyDown event of a RichTextBox. Then you can simply check for the right combination of key and modifier in that event handler and call your functions there: