From 84ae52b6d202425f2549221060cd0d2559eddf70 Mon Sep 17 00:00:00 2001 From: "Charles J. Cliffe" Date: Tue, 9 Feb 2016 01:08:15 -0500 Subject: [PATCH] Fix numeric direct-input for linux --- src/FrequencyDialog.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/FrequencyDialog.cpp b/src/FrequencyDialog.cpp index d44274c..1d6fb04 100644 --- a/src/FrequencyDialog.cpp +++ b/src/FrequencyDialog.cpp @@ -187,8 +187,9 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) { } void FrequencyDialog::OnShow(wxShowEvent &event) { - if (initialString.length() == 1) { - dialogText->SetSelection(2, 2); - dialogText->SetFocus(); + if (initialString.length() == 1) { + dialogText->SetFocus(); + dialogText->SetSelection(2, 2); } -} \ No newline at end of file + event.Skip(); +}