As discussed here.
ISSUE DESCRIPTION
The old overwolf.settings.getHotKey()
returned a human-readable name for the hotkey, like:
{
"status": "success",
"hotkey ": "Ctrl+F3"
}
The new overwolf.settings.hotkeys.get()
which replaces this function, no longer has that:
{
"name":"shots_fired_toggle_visibility",
"title":"Show In-Game",
"virtualKeycode":114,
"modifierKeys":2,
"extension-uid":"jdecmlblpoddjcmpdbhnefehffjfcjeijpkebedd",
"isPassthrough":false,
"hold":false,
"IsUnassigned":false
}
It’s missing the "Ctrl+F3"
requiring us to do our own translation from the modifierKeys
and virtualKeycode
.
FEATURE REQUEST
Add an additional property to the result of overwolf.settings.hotkeys.get()
with the human-readable hotkey key-combination, like such:
{
"name":"shots_fired_toggle_visibility",
"title":"Show In-Game",
"virtualKeycode":114,
"modifierKeys":2,
"hotkey":"Ctrl+F3", // <=== ADD THIS ONE!
"extension-uid":"jdecmlblpoddjcmpdbhnefehffjfcjeijpkebedd",
"isPassthrough":false,
"hold":false,
"IsUnassigned":false
}
PRIORITY:
[mid]
This will greatly ease the changeover from the old deprecated hotkey functions to the new.
I think this needs to be implemented before removing the deprecated functions altogether.