Skip to content

Commit

Permalink
- fixed #569
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hart committed Sep 30, 2024
1 parent ff009c8 commit c0c81bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion currentGitHash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c08142b60dfc4ea71c335649649cda259c492d3b
ff009c8f612d68acd88f3f1852df1c818bcba47c
2 changes: 1 addition & 1 deletion hi_backend/backend/currentGit.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PREVIOUS_HISE_COMMIT "c08142b60dfc4ea71c335649649cda259c492d3b"
#define PREVIOUS_HISE_COMMIT "ff009c8f612d68acd88f3f1852df1c818bcba47c"
8 changes: 6 additions & 2 deletions hi_scripting/scripting/api/ScriptingApiContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7594,7 +7594,7 @@ struct TextInputData: public ScriptingApi::Content::TextInputDataBase,

inputLabel->setText(prop["text"].toString(), dontSendNotification);
inputLabel->selectAll();
inputLabel->grabKeyboardFocus();
inputLabel->grabKeyboardFocusAsync();
}

void dismissAndCall(bool ok)
Expand All @@ -7604,7 +7604,11 @@ struct TextInputData: public ScriptingApi::Content::TextInputDataBase,

var args[2] = {var(ok), var(inputLabel->getText())};

inputLabel->getParentComponent()->removeChildComponent(inputLabel);
if(auto pc = inputLabel->getParentComponent())
{
pc->removeChildComponent(inputLabel);
}

inputLabel = nullptr;

if(callback)
Expand Down

0 comments on commit c0c81bd

Please sign in to comment.