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:
cantabile 2012-05-15 14:06:44 +00:00 committed by Thomas Goyne
parent 1afc3a816f
commit 68d7677e14
1 changed files with 4 additions and 0 deletions

View File

@ -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"));