>>584
AutoHotKeyV1なら

#IfWinActive, ahk_exe firefox.exe
^b::Return
#IfWinActive

AutoHotKeyV2なら

#HotIf WinActive("ahk_exe firefox.exe")
^b::Return
#HotIf

または試してないけどこんなアドオンとか
ttps://www.clear-code.com/blog/2023/8/30/firefox-disable-sidebar-shortcut.html