From fd7cdb9af7948370906dacab7d1ab04da785c9d2 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 11 Nov 2014 21:28:03 +0100 Subject: [PATCH] CPersonalizeGui::addPersonalizedItems() fix digikey shortcut after use Personalize-Menu Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/5b58992de21cc3c6f23359e60e8d8987f350f991 Author: Jacek Jendrzej Date: 2014-11-11 (Tue, 11 Nov 2014) --- src/gui/personalize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/personalize.cpp b/src/gui/personalize.cpp index 084afd6d3..bcbfe7bb3 100644 --- a/src/gui/personalize.cpp +++ b/src/gui/personalize.cpp @@ -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);