diff --git a/src/gui/input/panels/InputPanel.cpp b/src/gui/input/panels/InputPanel.cpp index 984b46d7..3ea039bc 100644 --- a/src/gui/input/panels/InputPanel.cpp +++ b/src/gui/input/panels/InputPanel.cpp @@ -212,6 +212,10 @@ void InputPanel::bind_hotkey_events(wxTextCtrl* text_ctrl) text_ctrl->Bind(wxEVT_SET_FOCUS, &InputPanel::on_edit_key_focus, this); text_ctrl->Bind(wxEVT_KILL_FOCUS, &InputPanel::on_edit_key_kill_focus, this); text_ctrl->Bind(wxEVT_RIGHT_DOWN, &InputPanel::on_right_click, this); +#if BOOST_OS_LINUX + // Bind to a no-op lambda to disable arrow keys navigation + text_ctrl->Bind(wxEVT_KEY_DOWN, [](wxKeyEvent &) {}); +#endif } void InputPanel::on_left_click(wxMouseEvent& event)