Ctrl+B successfully bolds the selected paragraph text
Ctrl+U successfully underlines the selected paragraph text
however the error I haven't been able to solve this afternoon is that: Ctrl+I replaces the selected text with empty italic characters rather than the selected text.
Any help for this anomaly is appreciated. Is this a "bug"?
-- Bold, Underline or Italic selected paragraph text
if (e_Key == 66 and e_Modifiers.ctrl == true) then
-- Create a table for the Bold formatting.
tbFormat = {Bold=true};
RichText.SetSelectionFormat("RichTextSticky1", tbFormat, true);
elseif (e_Key == 73 and e_Modifiers.ctrl == true) then
-- Create a table for the Italic formatting.
tbFormatt = {Italic=true};
RichText.SetSelectionFormat("RichTextSticky1", tbFormatt, true);
elseif (e_Key == 85 and e_Modifiers.ctrl == true) then
-- Create a table for the Underline formatting.
tbFormattt = {Underline=true};
RichText.SetSelectionFormat("RichTextSticky1", tbFormattt, true);
else
end
Ctrl+U successfully underlines the selected paragraph text
however the error I haven't been able to solve this afternoon is that: Ctrl+I replaces the selected text with empty italic characters rather than the selected text.
Any help for this anomaly is appreciated. Is this a "bug"?
-- Bold, Underline or Italic selected paragraph text
if (e_Key == 66 and e_Modifiers.ctrl == true) then
-- Create a table for the Bold formatting.
tbFormat = {Bold=true};
RichText.SetSelectionFormat("RichTextSticky1", tbFormat, true);
elseif (e_Key == 73 and e_Modifiers.ctrl == true) then
-- Create a table for the Italic formatting.
tbFormatt = {Italic=true};
RichText.SetSelectionFormat("RichTextSticky1", tbFormatt, true);
elseif (e_Key == 85 and e_Modifiers.ctrl == true) then
-- Create a table for the Underline formatting.
tbFormattt = {Underline=true};
RichText.SetSelectionFormat("RichTextSticky1", tbFormattt, true);
else
end
Comment