Skip to content

Commit

Permalink
2114: "Move objects by" text field does not respond to Enter key (Tre…
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwa authored Mar 27, 2018
1 parent 6bbad15 commit 3f81863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/View/MoveObjectsToolPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ namespace TrenchBroom {

void MoveObjectsToolPage::createGui() {
wxStaticText* text = new wxStaticText(this, wxID_ANY, "Move objects by");
m_offset = new wxTextCtrl(this, wxID_ANY, "0.0 0.0 0.0");
m_offset = new wxTextCtrl(this, wxID_ANY, "0.0 0.0 0.0", wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);
m_button = new wxButton(this, wxID_ANY, "Apply", wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);

m_button->Bind(wxEVT_UPDATE_UI, &MoveObjectsToolPage::OnUpdateButton, this);
m_button->Bind(wxEVT_BUTTON, &MoveObjectsToolPage::OnApply, this);
m_offset->Bind(wxEVT_TEXT_ENTER, &MoveObjectsToolPage::OnApply, this);

wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL);
sizer->Add(text, 0, wxALIGN_CENTER_VERTICAL);
Expand Down

0 comments on commit 3f81863

Please sign in to comment.