From 68d7677e1478448dfe7c742e80e8a3b281a31ba1 Mon Sep 17 00:00:00 2001 From: cantabile Date: Tue, 15 May 2012 14:06:44 +0000 Subject: [PATCH] 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. --- aegisub/src/subs_edit_box.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aegisub/src/subs_edit_box.cpp b/aegisub/src/subs_edit_box.cpp index 31e885592..1722b8c80 100644 --- a/aegisub/src/subs_edit_box.cpp +++ b/aegisub/src/subs_edit_box.cpp @@ -162,6 +162,10 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context) CommentBox = new wxCheckBox(this,-1,_("&Comment")); 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); StyleBox = MakeComboBox("Default", wxCB_READONLY, &SubsEditBox::OnStyleChange, _("Style for this line"));