The ability to add a keybind to a PluginToolbarButton doesn’t show up unless you have added the PluginToolbarButton to the Quick Access Bar Actions. (it can be disabled)
Repro steps:
Run this script in command bar to create a PluginToolbar and a PluginToolbarButton
local plugin = PluginManager():CreatePlugin()
local toolbar = plugin:CreateToolbar"This is a test toolbar"
local button = toolbar:CreateButton(
"ButtonId",
"Tooltip",
"rbxasset://textures/face.png",
"Test button"
)
button.ClickableWhenViewportHidden = true
Search for Test button
in customize shortcuts, it won’t appear.
Add Test button
to the Quick Access Bar Actions. (it can be disabled)
Search for Test button
in customize shortcuts again, it will appear now.