Problem With Adding Shortcuts To RVE
Posted: Wed Jun 13, 2007 1:28 pm
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
//------------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