Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

artist_port basic_text_box::key #281

Open
johannphilippe opened this issue Dec 23, 2021 · 0 comments
Open

artist_port basic_text_box::key #281

johannphilippe opened this issue Dec 23, 2021 · 0 comments

Comments

@johannphilippe
Copy link
Contributor

johannphilippe commented Dec 23, 2021

In text.cpp, line 376 :

      auto next_char = [this, &_text]()
      {
         if (_text.size() > 1 && _select_end < static_cast<int>(_text.size()))
            ++_select_end;
      };

Where _text.size() > 1 should probably be changed to _text.size() > 0 to allow moving caret to right when there is only one character in the box.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant