Win32 - minor fix to UpdateHotkeyAssignments()

This commit is contained in:
adelikat 2009-05-09 15:37:36 +00:00
parent c7bd2c7cbd
commit d3bb120ebe
1 changed files with 3 additions and 5 deletions

View File

@ -4012,17 +4012,15 @@ void UpdateHotkeyAssignments()
text = itemText; //Store in string object text = itemText; //Store in string object
truncate = text.find("\t"); //Find the tab truncate = text.find("\t"); //Find the tab
if (truncate >= 1) //Truncate if it exists if (truncate >= 1) //Truncate if it exists
text = text.substr(0,truncate+1); text = text.substr(0,truncate);
keyname = CustomKeys.OpenROM.key; //Get key & modifiers keyname = CustomKeys.OpenROM.key; //Get key & modifiers
keyname.insert(0,GetModifierString(CustomKeys.OpenROM.modifiers)); keyname.insert(0,GetModifierString(CustomKeys.OpenROM.modifiers));
text.append("\t");
text.append(keyname); text.append(keyname);
ChangeMenuItemText(IDM_OPEN, text); //Set Menu item text ChangeMenuItemText(IDM_OPEN, text);
} }
/*** /***
* Author: adelikat * Author: adelikat
* Date Added: May 8, 2009 * Date Added: May 8, 2009