Repository navigation
[Bug] openUrl confirmation dialog freezes the mouse cursor until F8 is opened #581
Closed
SKZFR
started this conversation in
[BUG] FiveM for GTAV Enhanced
Replies: 3 comments 1 reply
|
+1 |
0 replies
|
Hi, thanks we are looking into this. This is also the same issue as with media permission requests. |
0 replies
|
Hello, |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Since the September 22 Early Access patch, the
openUrlconfirmation dialog ("This link will take you to the site below") opens with a frozen mouse cursor. Neither "Visit site" nor "Cancel" can be clicked. Opening the F8 console makes the dialog clickable again.Issue type
Client
Repro rate
Always
Server build version
161
OS
Windows 11 25H2
CPU
Ryzen 7 9800X3D
GPU
NVIDIA RTX 3070
RAM
32 GB DDR5
Storage type
SSD NVMe
Connection type
Ethernet
ISP and bandwidth
No response
DxDiag
No response
Network graph
No response
Platform
Linux
OS version / distribution
No response
CPU
No response
RAM
No response
Using txAdmin?
No
Hosting provider
Self-hosted
Machine type
VPS
/perf endpoint output
No response
DDoS protection
No response
ulimit -n value (Linux only)
No response
Docker Compose file (Docker only)
No response
Steps to Reproduce
SetNuiFocus(true, true).window.invokeNative('openUrl', 'https://www.twitch.tv/')(any non-trusted domain).Expected Behavior
The dialog takes the mouse: the cursor moves and both buttons can be clicked.
Actual Behavior
The cursor stays frozen where it was when the dialog opened. Neither button can be clicked, so the player is stuck on the dialog. Opening the F8 console unfreezes the cursor and the dialog becomes clickable.
Evidence
Additional Context
This started with the September 22 patch notes (#530): "Keyboard and mouse input no longer reaches the game or the NUI underneath while the F8 console or the
openUrlconfirmation dialog has focus", the fix for #453.In the public repo, opening F8 also calls
InputHook::SetGameMouseFocus(false)(conhost-v2/src/ConsoleHost.cpp), while the URL dialog only setsnui::g_showUrlConfirmModal(nui-core/src/NUICallbacks_Native.cpp). The dialog may never take mouse focus from the game: now that input to the game and the NUI is blocked while it is open, nothing moves the cursor. That would explain why opening F8 fixes it.Only tested with NUI focus held (
SetNuiFocus(true, true)), which is how most resources open links.All reactions