bczsalba / pytermgui

Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
https://ptg.bczsalba.com
MIT License
2.23k stars 54 forks source link

[BUG] Cursor Movement is broken in InputField #151

Closed RohanBhattacharyya closed 1 month ago

RohanBhattacharyya commented 1 month ago

Describe the bug When trying to type in something into an InputField, the cursor doesn't move, resulting in the text showing up backwards. To Reproduce Steps to reproduce the behavior:

  1. Use sample project of a "New Contact" in the README
  2. Run the project.
  3. Attempt to type something in.
  4. See error.

Expected behavior I expected the cursor to move as I typed, and for the arrow keys to move the cursor along the input box. Screenshots image A screenshot of the text being inputted while the cursor doesn't move. I typed in " Hello world!", and since the cursor didn't move, the words show up backwards. System information Windows 11 Python 3.10.6 Used VSCode when running code.

Add the output of "ptg --version" in this box. image

Possible cause It seems that it could be caused by some of the events inside input_field.py not being called. I'm not sure however.

RohanBhattacharyya commented 1 month ago

Sorry, duplicate of https://github.com/bczsalba/pytermgui/issues/133