You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change input box get focus after run command (#293)
* Change input box get focus after run command
Currently, after running a command, the focus goes to the output window
with the cursor blinking in it. One needs press `Tab` twice to return
to the input combobox to enter a subsequent command. It seems to be
stemming from a `SetFocus()` command to the handle of `m_hInput` which
is defined:
PythonScript/PythonScript/src/ConsoleDialog.cpp:
```
126: m_hInput = FindWindowEx(m_hCombo, NULL, L"Edit", NULL);
```
Though I'm not sure what that returns since I don't see an Edit box in
the PythonScript dockable dialog. There is however a combobox which is
set to `m_hCombo` and that is where the commands are entered.
This changes the `giveInputFocus()` method in ConsoleDialog class to
give focus to the combobox. The only "issue" is that when gaining
focus, the text in the combobox is not cleared, it is highlighted.
One can simply start typing and it will overwrite. I think a vast
improvement.
Fix#184
* Change input box get focus after run command
Currently, after running a command, the focus goes to the output window
with the cursor blinking in it. One needs press `Tab` twice to return
to the input combobox to enter a subsequent command. It seems to be
stemming from a `SetFocus()` command to the handle of `m_hInput` which
is defined:
PythonScript/PythonScript/src/ConsoleDialog.cpp:
```
126: m_hInput = FindWindowEx(m_hCombo, NULL, L"Edit", NULL);
```
Though I'm not sure what that returns since I don't see an Edit box in
the PythonScript dockable dialog. There is however a combobox which is
set to `m_hCombo` and that is where the commands are entered.
This changes the `giveInputFocus()` method in ConsoleDialog class to
give focus to the combobox. The only "issue" is that when gaining
focus, the text in the combobox is not cleared, it is highlighted.
One can simply start typing and it will overwrite. I think a vast
improvement.
Fix#184
---------
Co-authored-by: VinsWorldcom <[email protected]>
0 commit comments