From 25f9d3ff13ead0fe0dfa3982c3261a4b7aba18d7 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 5 Jul 2021 17:37:15 +0200 Subject: [PATCH] pgui: Don't clear candidate on keypresses like shift/ctrl etc --- panda/src/pgui/pgEntry.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/panda/src/pgui/pgEntry.cxx b/panda/src/pgui/pgEntry.cxx index 633f999769..ee8e05b30b 100644 --- a/panda/src/pgui/pgEntry.cxx +++ b/panda/src/pgui/pgEntry.cxx @@ -216,11 +216,6 @@ press(const MouseWatcherParameter ¶m, bool background) { } else if ((!background && get_focus()) || (background && get_background_focus())) { // Keyboard button. - if (!_candidate_wtext.empty()) { - _candidate_wtext = wstring(); - _text_geom_stale = true; - } - _cursor_position = min(_cursor_position, _text.get_num_characters()); _blink_start = ClockObject::get_global_clock()->get_frame_time(); if (button == KeyboardButton::enter()) {