mirror of https://github.com/odrling/Aegisub
Never focus the comment checkbox (wxGTK only)
The checkbox can be toggled using its accelerator, without needing to switch focus back to whatever was focused before. Originally committed to SVN as r6798.
This commit is contained in:
parent
1afc3a816f
commit
68d7677e14
|
@ -162,6 +162,10 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context)
|
||||||
|
|
||||||
CommentBox = new wxCheckBox(this,-1,_("&Comment"));
|
CommentBox = new wxCheckBox(this,-1,_("&Comment"));
|
||||||
CommentBox->SetToolTip(_("Comment this line out. Commented lines don't show up on screen."));
|
CommentBox->SetToolTip(_("Comment this line out. Commented lines don't show up on screen."));
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
// Only supported in wxgtk
|
||||||
|
CommentBox->SetCanFocus(false);
|
||||||
|
#endif
|
||||||
TopSizer->Add(CommentBox, 0, wxRIGHT | wxALIGN_CENTER, 5);
|
TopSizer->Add(CommentBox, 0, wxRIGHT | wxALIGN_CENTER, 5);
|
||||||
|
|
||||||
StyleBox = MakeComboBox("Default", wxCB_READONLY, &SubsEditBox::OnStyleChange, _("Style for this line"));
|
StyleBox = MakeComboBox("Default", wxCB_READONLY, &SubsEditBox::OnStyleChange, _("Style for this line"));
|
||||||
|
|
Loading…
Reference in New Issue