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

Text annotations are limited to one line #1043

Open
ModalityZ opened this issue Apr 29, 2024 · 3 comments
Open

Text annotations are limited to one line #1043

ModalityZ opened this issue Apr 29, 2024 · 3 comments
Labels

Comments

@ModalityZ
Copy link

Describe the bug
When in the annotator and adding a text annotation:

  • Using the Enter key does not introduce a new line
  • Using the resize handles on the text annotation to add vertical space and reduce horizontal space causes the rightmost text to overlap the leftmost instead of wrapping to new lines

To Reproduce
Steps to reproduce the behavior:

  1. Take a screenshot and enter KSnip Annotator
  2. Click on the text tool, then click over the screenshot to begin a text annotation
  3. Use the Enter key to try to introduce a new line. Typing more should appear on the new line.
  4. Type enough text to fill or exceed the available horizontal space, then use the text annotation's resize handles to reduce horitzontal size and increase vertical size. The text inside should word-wrap.

Expected behavior
See expected behavior described in the steps above.

Screenshots
2024-04-29_ksnipTextAnnotationsAreLimitedToOneLine

Desktop (please complete the following information):

  • OS: Linux
  • Distribution in case of Linux: Kubuntu
  • Window System in case of Linux: Qt5, X11, KDE Wayland, Gnome Wayland
  • ksnip version: 1.9.2
  • How did you install ksnip: KSnip About shows empty Build. I guess via Snap.
@ModalityZ ModalityZ added the bug label Apr 29, 2024
@DamirPorobic
Copy link
Member

Have you tried ALT + Enter or ALT + Return?

@ModalityZ
Copy link
Author

Have you tried ALT + Enter or ALT + Return?

I haven't seen that mentioned in the documentation. But I just tried it. Although I have no shortcuts bound to Alt, once I press that key while typing a text annotation, focus seems to shift to the KSnip toolbar. Typing more characters does not result in their appearing in the text annotation.

@oaintnomountain
Copy link

I just discovered this wonderful tool for me and did run into the same behaviour, expecting the text to wrap when resizing the text rectangle.
What did work for me as a workaround: using a "soft return" with Shift + Return.
Still, resizing to the shape of a modified rectangle would be my preferred and intuitively expected behaviour.
I am working on Linux (Ubuntu Budgie 22.04) with ksnip version 10.0.1 as flatpak.

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

No branches or pull requests

3 participants