Allow right clicking in text fields (#1207)

* Allow right clicking in text edit

* Cleanup

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Chase
2023-05-12 13:55:03 +08:00
committed by Keavon Chambers
co-authored by Keavon Chambers
parent 4e0c673a35
commit 05f58f4ca1
2 changed files with 16 additions and 11 deletions
@@ -276,6 +276,7 @@
textInput.focus();
textInput.click();
// Sends the text input element used for interactively editing with the text tool in a custom event
window.dispatchEvent(new CustomEvent("modifyinputfield", { detail: textInput }));
}