Skip to content

Commit

Permalink
ENH:file rename support Enter key confirmation
Browse files Browse the repository at this point in the history
Change-Id: I708d120d132dac7f1bf14bb508310ba55987ad4c
  • Loading branch information
walterwongbbl authored and lanewei120 committed Dec 15, 2022
1 parent 1c91997 commit 75ddeb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/slic3r/GUI/SelectMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
m_rename_input->SetSize(wxSize(FromDIP(380), FromDIP(24)));
m_rename_input->SetMinSize(wxSize(FromDIP(380), FromDIP(24)));
m_rename_input->SetMaxSize(wxSize(FromDIP(380), FromDIP(24)));
m_rename_input->Bind(wxEVT_TEXT_ENTER, [this](auto& e) {on_rename_enter();});
rename_edit_sizer_v->Add(m_rename_input, 1, wxALIGN_CENTER, 0);


Expand Down
1 change: 1 addition & 0 deletions src/slic3r/GUI/SendToPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ SendToPrinterDialog::SendToPrinterDialog(Plater *plater)
m_rename_input->SetSize(wxSize(FromDIP(380), FromDIP(24)));
m_rename_input->SetMinSize(wxSize(FromDIP(380), FromDIP(24)));
m_rename_input->SetMaxSize(wxSize(FromDIP(380), FromDIP(24)));
m_rename_input->Bind(wxEVT_TEXT_ENTER, [this](auto& e) {on_rename_enter();});
rename_edit_sizer_v->Add(m_rename_input, 1, wxALIGN_CENTER, 0);


Expand Down

0 comments on commit 75ddeb7

Please sign in to comment.