2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-10-11 14:06:25 +00:00

Partially (italic+colored) support blockquotes.

This commit is contained in:
John Preston
2023-10-05 11:47:37 +04:00
parent 859e41f95a
commit d5147c9d28
9 changed files with 40 additions and 3 deletions

View File

@@ -373,6 +373,15 @@ void MainWindow::createGlobalMenu() {
},
Ui::kStrikeOutSequence);
psBlockquote = edit->addAction(
tr::lng_menu_formatting_blockquote(tr::now),
[] {
SendKeySequence(
Qt::Key_Period,
Qt::ControlModifier | Qt::ShiftModifier);
},
Ui::kBlockquoteSequence);
psMonospace = edit->addAction(
tr::lng_menu_formatting_monospace(tr::now),
[] {
@@ -534,6 +543,7 @@ void MainWindow::updateGlobalMenuHook() {
ForceDisabled(psItalic, !markdownEnabled);
ForceDisabled(psUnderline, !markdownEnabled);
ForceDisabled(psStrikeOut, !markdownEnabled);
ForceDisabled(psBlockquote, !markdownEnabled);
ForceDisabled(psMonospace, !markdownEnabled);
ForceDisabled(psClearFormat, !markdownEnabled);
}