Skip to content
New issue

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

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

Already on GitHub? Sign in 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.

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

No branches or pull requests

1 participant