Add delayed right-click binding after UOSC loads (experimental)

This commit is contained in:
2026-02-03 18:36:06 -08:00
parent 15843f4d82
commit 8e56109215

View File

@@ -2928,6 +2928,17 @@ end)
mp.add_timeout(0, function()
pcall(ensure_mpv_ipc_server)
pcall(_lua_log, 'medeia-lua loaded version=' .. MEDEIA_LUA_VERSION)
-- Try to re-register right-click after UOSC loads (might override its binding)
mp.add_timeout(1.0, function()
_lua_log('[KEY] attempting to re-register mbtn_right after UOSC loaded')
pcall(function()
mp.add_key_binding("mbtn_right", "medios-menu-right-click-late", function()
_lua_log('[KEY] mbtn_right pressed (late registration attempt)')
M.show_menu()
end, {repeatable=false})
end)
end)
-- Load optional modules (kept in separate files).
pcall(function()