File diff r27398:53658248e31b → r27399:588375abeca3
src/hotkeys.cpp
Show inline comments
 
@@ -213,9 +213,9 @@ static std::string KeycodeToString(uint1
 
std::string SaveKeycodes(const Hotkey *hotkey)
 
{
 
	std::string str;
 
	for (uint i = 0; i < hotkey->keycodes.size(); i++) {
 
		if (i > 0) str += ",";
 
		str += KeycodeToString(hotkey->keycodes[i]);
 
	for (auto keycode : hotkey->keycodes) {
 
		if (!str.empty()) str += ",";
 
		str += KeycodeToString(keycode);
 
	}
 
	return str;
 
}
 
@@ -257,7 +257,7 @@ Hotkey::Hotkey(const uint16 *default_key
 
 */
 
void Hotkey::AddKeycode(uint16 keycode)
 
{
 
	include(this->keycodes, keycode);
 
	this->keycodes.insert(keycode);
 
}
 

	
 
HotkeyList::HotkeyList(const char *ini_group, Hotkey *items, GlobalHotkeyHandlerFunc global_hotkey_handler) :