mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
pgui: Don't clear candidate on keypresses like shift/ctrl etc
This commit is contained in:
parent
f27e9b2a86
commit
25f9d3ff13
@ -216,11 +216,6 @@ press(const MouseWatcherParameter ¶m, bool background) {
|
|||||||
} else if ((!background && get_focus()) ||
|
} else if ((!background && get_focus()) ||
|
||||||
(background && get_background_focus())) {
|
(background && get_background_focus())) {
|
||||||
// Keyboard button.
|
// Keyboard button.
|
||||||
if (!_candidate_wtext.empty()) {
|
|
||||||
_candidate_wtext = wstring();
|
|
||||||
_text_geom_stale = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
_cursor_position = min(_cursor_position, _text.get_num_characters());
|
_cursor_position = min(_cursor_position, _text.get_num_characters());
|
||||||
_blink_start = ClockObject::get_global_clock()->get_frame_time();
|
_blink_start = ClockObject::get_global_clock()->get_frame_time();
|
||||||
if (button == KeyboardButton::enter()) {
|
if (button == KeyboardButton::enter()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user