File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -421,6 +421,8 @@ void HtmlGeneratorWidget::on_bodyToggleButton_toggled(bool checked)
421421 ui->bodySpacerLabel ->setVisible (checked);
422422 ui->bodyTextEdit ->setVisible (checked);
423423 ui->bodyToggleButton ->setText (checked ? tr (" ▼ Body" ) : tr (" ▶ Body" ));
424+ if (checked)
425+ ui->bodyTextEdit ->setFocus (Qt::PopupFocusReason);
424426}
425427
426428void HtmlGeneratorWidget::on_javascriptToggleButton_toggled (bool checked)
@@ -449,6 +451,8 @@ void HtmlGeneratorWidget::updateTextSectionVisibility()
449451 ui->line2LineEdit ->setVisible (body.contains (" %2" ));
450452 ui->line3Label ->setVisible (body.contains (" %3" ));
451453 ui->line3LineEdit ->setVisible (body.contains (" %3" ));
454+ if (ui->line1LineEdit ->isVisible ())
455+ ui->line1LineEdit ->setFocus (Qt::PopupFocusReason);
452456}
453457
454458void HtmlGeneratorWidget::populatePresetIconView ()
You can’t perform that action at this time.
0 commit comments