Skip to content

iced::widget::tooltip + iced::widget::focus_next -> unexpected behavior #3110

@g-braeunlich

Description

@g-braeunlich

Is your issue REALLY a bug?

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Putting a text_input inside a tooltip seems to remove the text_input from the focus chain traversed by focus_next.
I guess that happens because tooltip has a blank operate in the Widget impl.

It is still possible to set the focus on the text_input by clicking on it. Using focus_next when text_input (still inside tooltop) has focus results in a state where 2 widgets have focus at the same time (typing on the keyboard enters text in both inputs at the same time).

What is the expected behavior?

The text_input should be focussable via focus_next if it is placed inside a tooltip.

Example:
iced-tooltip-focus-bug.zip

Version

crates.io release

Operating System

Linux

Do you have any log output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions