mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix fatal error on editing texbox not having any consumer
This commit is contained in:
parent
5e9b290aea
commit
22fa082fc6
1 changed files with 1 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ void TextBox::performEditingKeyboardEvents(keycode key) {
|
|||
paste(L"\n");
|
||||
} else {
|
||||
defocus();
|
||||
if (validate()) {
|
||||
if (validate() && consumer) {
|
||||
consumer(label->getText());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue