schematic: textbox entry not focus to modal window
<!-- --------Before Creating a New Issue-----------
* Limit report to a single issue.
* Search the issue tracker to verify the issue has not already been reported.
* Complete all instructions between `template comment markers <>.
* Keep report contents limited to the necessary information required to fix the issue.
* When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. -->
# Description
When I place text box, the cursor still captured on schematic window instead of modal window (textbox editor).
Therefore, the cursor cannot moved to OK/Cancel buttons on modal window. Also cannot moved outside schematic window. Basically, it stuck.
Fortunately, I can change to other App using [Window+TAB]. Also keyboard is functional. I can type the textbox content,
as well as [ENTER], but this for new line instead of OK button.
# Steps to reproduce
1. Click "add a text box".
2. Draw the box.
3. Then, after entering the editor, cursor is stuck.
# Tricks to resolve
1. Move to another app using [Window+TAB].
2. Move back to Kicad EESchema using [Window+TAB]. Now cursor is released and can be used on editor and has normal behavior as modal dialog should be.
# KiCad Version
```
Application: KiCad Schematic Editor x64 on x64
Version: 7.99.0-808-g140f76b870, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
libcurl/7.88.1-DEV Schannel zlib/1.2.13
Platform: Windows 11 (build 22621), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Apr 16 2023 07:17:46
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.3
Curl: 7.88.1-DEV
ngspice: 40
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
```
issue