Problem With Adding Shortcuts To RVE

General TRichView support forum. Please post your questions here
Post Reply
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Problem With Adding Shortcuts To RVE

Post by DickBryant »

I want to add the Ctrl-B for Bold, Ctrl-I for Italic and Ctrl-U for Underline keyboard shortcuts to my editor. I do this by adding this code to the RVActions TRVAPopupMenuHelper.PreparePopup(X, Y: Integer) code:

//------------My Mods
AddAction(TrvActionFontBold);
AddAction(TrvActionFontItalic);
AddAction(TrvActionFontUnderline);
AddAction(nil);
//-----------End My Mods

This works fine AFTER the user right-clicks once to invoke the Popup. However, the shortcuts AREN'T available before that. Is there a way I can have these shortcuts available without having to first invoke the Popup?

TIA,

Dick
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I thought that just having these actions is enough. I'll test when I return.
DickBryant
Posts: 148
Joined: Wed Dec 07, 2005 2:02 pm
Contact:

Post by DickBryant »

Thanks, Sergey - I'll keep a watch for your next reply.
Post Reply