From bc9c521cfd0f801ab0b6b0e0544ecdc3b3359f78 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 27 Jan 2012 19:23:35 +0000 Subject: [PATCH] Apply the 'Subs Edit Box' hotkey handling to all of the text boxes in the subs edit area rather than just the main text edit. Closes #1431. Originally committed to SVN as r6380. --- aegisub/src/subs_edit_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/subs_edit_box.cpp b/aegisub/src/subs_edit_box.cpp index b534d201a..d15bd3987 100644 --- a/aegisub/src/subs_edit_box.cpp +++ b/aegisub/src/subs_edit_box.cpp @@ -168,7 +168,7 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context) // Middle controls MiddleSizer = new wxBoxSizer(wxHORIZONTAL); - Layer = new wxSpinCtrl(this,-1,"",wxDefaultPosition,wxSize(50,-1),wxSP_ARROW_KEYS,0,0x7FFFFFFF,0); + Layer = new wxSpinCtrl(this,-1,"",wxDefaultPosition,wxSize(50,-1), wxSP_ARROW_KEYS | wxTE_PROCESS_ENTER,0,0x7FFFFFFF,0); Layer->SetToolTip(_("Layer number")); MiddleSizer->Add(Layer, wxSizerFlags().Center()); MiddleSizer->AddSpacer(5); @@ -206,7 +206,7 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context) // Text editor TextEdit = new SubsTextEditCtrl(this, wxSize(300,50), wxBORDER_SUNKEN, c); - TextEdit->Bind(wxEVT_KEY_DOWN, &SubsEditBox::OnKeyDown, this); + Bind(wxEVT_KEY_DOWN, &SubsEditBox::OnKeyDown, this); BottomSizer = new wxBoxSizer(wxHORIZONTAL); BottomSizer->Add(TextEdit,1,wxEXPAND,0);