Add delayed right-click binding after UOSC loads (experimental)
This commit is contained in:
@@ -2929,6 +2929,17 @@ 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()
|
||||
local script_dir = mp.get_script_directory() or ''
|
||||
|
||||
Reference in New Issue
Block a user