Skip to content

SetKeyboardFocusHere(-1) not working with InputTextMultiline #4761

@actondev

Description

@actondev

Version: v1.85
Branch: master

When doing something like

InputTextMultiline(..);
// checking for right click
if(IsItemHovered() && IsItemClicked(1)) {
SetKeyboardFocusHere(-1);
}

Nothing happens.
However, when using InputText instead of InputTextMultiline, it works as expected!

Another note: putting the SetKeyboardFocusHere(0) before the InputTextMultilinedoes have effect (not useful but nonetheless).

Some context: I noticed that only with left mouse-click does an inputText gets focus & wanted to have it also happening with the right click. But as I saw in the implementation, the MouseClicked[0] etc checks are hardcoded, taking into account only the left click.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions