Skip to content

Commit

Permalink
xrGame/UIDialogHolder.cpp: accidentally forgot to upload this change
Browse files Browse the repository at this point in the history
This change belongs to 3d614e4, but I
missed to add it to the commit.
  • Loading branch information
Xottab-DUTY committed Jan 6, 2025
1 parent 3d614e4 commit 186e3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/UIDialogHolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ bool CDialogHolder::IR_UIOnKeyboardPress(int dik)
{
auto& focus = UI().Focus();
const auto focused = focus.GetFocused();
const Fvector2 vec = focused ? focused->GetWndPos() : UI().GetUICursor().GetCursorPosition();
const Fvector2 vec = focused ? focused->GetAbsoluteCenterPos() : UI().GetUICursor().GetCursorPosition();
const auto [target, direct] = focus.FindClosestFocusable(vec, direction);

if (target)
Expand Down

0 comments on commit 186e3d8

Please sign in to comment.