Exemplo n.º 1
0
EventManager::AcceleratorList EventManager::findAccelerator(guint keyVal,
															const unsigned int modifierFlags)
{
	AcceleratorList returnList;

	// Cycle through the accelerators and check for matches
	for (AcceleratorList::iterator i = _accelerators.begin(); i != _accelerators.end(); i++) {

		if (i->match(keyVal, modifierFlags)) {
			// Add the pointer to the found accelerators
			returnList.push_back((*i));
		}
	}

	return returnList;
}