-
-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Closed
Description
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 InputTextMultiline
does 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.