mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
make multi-line textarea work
This commit is contained in:
parent
a018f152df
commit
d1e912e5e7
@ -182,6 +182,9 @@ do_transmit_data(DataGraphTraverser *trav, const DataNodeTransmit &input,
|
|||||||
} else if (be._button == KeyboardButton::meta()) {
|
} else if (be._button == KeyboardButton::meta()) {
|
||||||
_modifiers |= KM_META;
|
_modifiers |= KM_META;
|
||||||
|
|
||||||
|
} else if (be._button == KeyboardButton::enter()) {
|
||||||
|
_text_input.push_back('\n');
|
||||||
|
|
||||||
} else if (be._button == MouseButton::wheel_up()) {
|
} else if (be._button == MouseButton::wheel_up()) {
|
||||||
_wheel_delta -= 1;
|
_wheel_delta -= 1;
|
||||||
} else if (be._button == MouseButton::wheel_down()) {
|
} else if (be._button == MouseButton::wheel_down()) {
|
||||||
@ -206,6 +209,10 @@ do_transmit_data(DataGraphTraverser *trav, const DataNodeTransmit &input,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ButtonEvent::T_repeat:
|
case ButtonEvent::T_repeat:
|
||||||
|
if (be._button == KeyboardButton::enter()) {
|
||||||
|
_text_input.push_back('\n');
|
||||||
|
}
|
||||||
|
|
||||||
rocket_key = get_rocket_key(be._button);
|
rocket_key = get_rocket_key(be._button);
|
||||||
if (rocket_key != KI_UNKNOWN) {
|
if (rocket_key != KI_UNKNOWN) {
|
||||||
_repeated_keys.push_back(rocket_key);
|
_repeated_keys.push_back(rocket_key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user