Skip to content

Commit c43fc81

Browse files
authored
Disable key events for InputPanel's text controls (#520)
1 parent c0ebbef commit c43fc81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/input/panels/InputPanel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ void InputPanel::bind_hotkey_events(wxTextCtrl* text_ctrl)
212212
text_ctrl->Bind(wxEVT_SET_FOCUS, &InputPanel::on_edit_key_focus, this);
213213
text_ctrl->Bind(wxEVT_KILL_FOCUS, &InputPanel::on_edit_key_kill_focus, this);
214214
text_ctrl->Bind(wxEVT_RIGHT_DOWN, &InputPanel::on_right_click, this);
215+
#if BOOST_OS_LINUX
216+
// Bind to a no-op lambda to disable arrow keys navigation
217+
text_ctrl->Bind(wxEVT_KEY_DOWN, [](wxKeyEvent &) {});
218+
#endif
215219
}
216220

217221
void InputPanel::on_left_click(wxMouseEvent& event)

0 commit comments

Comments
 (0)