Page MenuHomeFeedback Tracker

PluginKeyBinding RegisterKeyBind - please remove the protection
New, NormalPublic

Description

In my efforts to keep most of my development within the plugin system, I attempted to use the RegisterKeyBind function in PluginKeyBinding to create new Keybinds that specifically deal with Plugins, only to find that it is protected, so we cannot do something as simple as:

PluginKeyBinding m_Keybind = PluginKeyBinding.Cast(GetPlugin(PluginKeyBinding));
m_Keybind.RegisterKeyBinding(MENU_ANY, KeyCode.KC_LCONTROL, KeyCode.KC_DIVIDE, "PluginKillFeedNotification", "ToggleKillFeedClientSettings", "[LCTRL]+[DIVIDE]", "Show/Hide KillFeed Client settings screen");

This results in errors due to RegisterKeyBinding being protected. The system is already there, why can we not use it?

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
N/A
Category
Controls
Steps To Reproduce
PluginKeyBinding m_Keybind = PluginKeyBinding.Cast(GetPlugin(PluginKeyBinding));
m_Keybind.RegisterKeyBinding(MENU_ANY, KeyCode.KC_LCONTROL, KeyCode.KC_DIVIDE, "PluginKillFeedNotification", "ToggleKillFeedClientSettings", "[LCTRL]+[DIVIDE]", "Show/Hide KillFeed Client settings screen");

Event Timeline

AussieCleetus updated the task description. (Show Details)
AussieCleetus edited Steps To Reproduce. (Show Details)
Geez added a subscriber: rVn.