13
0

additional logic to avoid showing top-level menu actions in the key shortcut editor

This commit is contained in:
Paul Davis 2019-02-16 13:06:08 -07:00
parent 56e950b189
commit 3df88accc6

View File

@ -371,8 +371,10 @@ KeyEditor::Tab::populate ()
} }
//kinda kludgy way to avoid displaying menu items as mappable //kinda kludgy way to avoid displaying menu items as mappable
if ((action_name.find ("Menu") == action_name.length() - 4) || if ((action_name.find (X_("Menu")) == action_name.length() - 4) ||
(action_name.find ("menu") == action_name.length() - 4) || (action_name.find (X_("menu")) == action_name.length() - 4) ||
(category.find (X_("Menu")) == category.length() - 4) ||
(category.find (X_("menu")) == category.length() - 4) ||
(action_name == _("RegionList"))) { (action_name == _("RegionList"))) {
continue; continue;
} }