CPersonalizeGui::addPersonalizedItems() fix digikey shortcut after use Personalize-Menu

This commit is contained in:
Jacek Jendrzej
2014-11-11 21:28:03 +01:00
parent 5bd14ea4b8
commit 5b58992de2

View File

@@ -940,7 +940,7 @@ void CPersonalizeGui::addPersonalizedItems()
bool add_shortcut = false;
//get shortcut
if (d_key == CRCInput::RC_nokey && fw->active ) //if no icon is defined and item is active, allow to generate a shortcut,
if (fw->active && (d_key == CRCInput::RC_nokey || CRCInput::isNumeric(d_key))) //if RC_nokey or RC_key is digi and item is active, allow to generate a shortcut,
{
add_shortcut = true;
d_key = getShortcut(short_cut);