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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user