Add delayed right-click binding after UOSC loads (experimental)
This commit is contained in:
@@ -2928,6 +2928,17 @@ end)
|
|||||||
mp.add_timeout(0, function()
|
mp.add_timeout(0, function()
|
||||||
pcall(ensure_mpv_ipc_server)
|
pcall(ensure_mpv_ipc_server)
|
||||||
pcall(_lua_log, 'medeia-lua loaded version=' .. MEDEIA_LUA_VERSION)
|
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).
|
-- Load optional modules (kept in separate files).
|
||||||
pcall(function()
|
pcall(function()
|
||||||
|
|||||||
Reference in New Issue
Block a user