MCPcopy Create free account
hub / github.com/DFHack/dfhack / CanInvokeHotkey

Method CanInvokeHotkey

library/PluginManager.cpp:1041–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041bool PluginManager::CanInvokeHotkey(const std::string &command, df::viewscreen *top)
1042{
1043 Plugin *plugin = getPluginByCommand(command);
1044 return plugin ? plugin->can_invoke_hotkey(command, top) : true;
1045}
1046
1047void PluginManager::OnUpdate(color_ostream &out)
1048{

Callers 2

handleKeybindMethod · 0.80
can_invokeFunction · 0.80

Calls 1

can_invoke_hotkeyMethod · 0.80

Tested by

no test coverage detected